AzCopy登录失败 [英] AzCopy login fails
问题描述
运行azcopy login
并使用我的Azure帐户登录后,在登录页面上看到以下响应:
After running azcopy login
and signing in with my Azure account, I see the following response on the sign in page:
来自身份提供者的用户帐户在租户"Microsoft"中不存在,并且无法访问该租户中的应用程序.首先需要将该帐户作为外部用户添加到租户中.注销,然后使用其他Azure Active Directory用户帐户再次登录."
"User account from identity provider does not exist in tenant ‘Microsoft’ and cannot access the application in that tenant. This account needs to be added as an external user in the tenant first. Sign out and sign back in again with a different Azure Active Directory user account."
我是否缺少诸如应用程序注册之类的东西?
Am I missing something like an App Registration?
推荐答案
您可能会遇到此问题,因为在尝试使用azcopy.exe
You are probably facing this issue because you are not specifying your Azure AD tenant-id while trying to login with azcopy.exe
所以不是
azcopy.exe -login
你应该做
azcopy.exe -login --tenant-id=yourtenantid
- 当您不指定任何租户ID时,它将尝试登录"Microsoft.com"租户,显然,您的特定Azure AD用户(例如
kyle@myaad.onmicrosoft.com
)并不存在,因此会出现错误. -
如果您尚不知道Azure AD租户ID,找到它的许多方法之一是转到Azure门户> Azure Active Directory>特定的Azure AD>属性(目录ID中的向导字段是您的Azure AD租户ID)
- When you don't specify any tenant-id it tries to login to "Microsoft.com" tenant, where obviously your specific Azure AD user like
kyle@myaad.onmicrosoft.com
doesn't exist and hence the error. If you don't know your Azure AD Tenant Id already, one of the many ways to find it is by going to Azure Portal > Azure Active Directory > Your specific Azure AD > Properties (The Guid in Directory ID field is your Azure AD Tenant ID)
顺便说一句,我能够只通过登录重现您的问题,而无需提及我的租户,然后能够通过适当地指定tenantid来成功登录.
On a side note, I was able to reproduce your issue doing exactly just the login without my tenant mentioned and then able to successfully login by specifying the tenantid appropriately.
仅使用
azcopy.exe login
发行使用
azcopy.exe login --tenant-id=fa89xxxxxxxx
成功登录这篇关于AzCopy登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- When you don't specify any tenant-id it tries to login to "Microsoft.com" tenant, where obviously your specific Azure AD user like