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 中的 Guid字段是您的 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)
顺便说一句,我能够在没有提及我的租户的情况下完全复制您的问题,然后通过适当地指定租户 ID 成功登录.
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 登录问题
使用
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