After running azcopy login
and signing in with my Azure account, I see the following response on the sign in page:
“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?
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
You should do
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