Pick an account You will be signed in to Azure Storage AzCopy on a remote device or service. Select Back if you aren't trying to sign in to this application on a remote device or service. Selected user account does not exist in tenant 'Microsoft Services'

张承志 0 Reputation points
2024-06-01T12:27:39.8566667+00:00

Pick an account

You will be signed in to Azure Storage AzCopy on a remote device or service. Select Back if you aren't trying to sign in to this application on a remote device or service.

Selected user account does not exist in tenant 'Microsoft Services' and cannot access the application '579a7132-0e58-4d80-b1e1-7a1e2d337859' in that tenant. The account needs to be added as an external user in the tenant first. Please use a different account.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,222 questions
Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
818 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,919 questions
{count} votes

2 answers

Sort by: Most helpful
  1. 张承志 0 Reputation points
    2024-06-01T12:39:15.42+00:00

    enter image description here

    0 comments No comments

  2. Anand Prakash Yadav 7,795 Reputation points Microsoft Vendor
    2024-06-03T11:03:54.0766667+00:00

    Hello 张承志,

    Thank you for posting your query here!

    It seems you’re encountering an issue with Azure Storage AzCopy related to user account authentication. The error message “Selected user account does not exist in tenant ‘Microsoft Services’ and cannot access the application” indicates that the account you’re using needs to be added as an external user in the specified tenant.

    Please provide the tenant ID (also known as the directory ID) associated with your Azure Active Directory (AD) and check. The tenant ID uniquely identifies your organization’s directory within Azure AD.

    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)
    User's image Now that you have the tenant ID, use it when running the azcopy login command:

    azcopy login --tenant-id=<tenant-id>

    Similar issue: https://stackoverflow.com/questions/62487154/azcopy-authenticate-selected-user-account-does-not-exist-in-tenant

    Do let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.