AzCopy login fails

纵然是瞬间 提交于 2019-12-04 04:04:25

You are probably facing this issue because you are not specifying your Azure AD tenant-id while trying to login with azcopy.exe

So instead of

azcopy.exe -login

You should do

azcopy.exe -login --tenant-id=yourtenantid
  • 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)

  • 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.

    Issue using only azcopy.exe login

    Successful login using azcopy.exe login --tenant-id=fa89xxxxxxxx

You need to sign in with an MSA account that is already part of an Azure Tenant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!