Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Azure azcopy login error Selected user account does not exist in tenant 'Microsoft Services' and cannot access the application '579a7132-0e58-4d80-b1e1-7a1e2d337859'

While working with new version 10 of azcopy.exe I was facing error while login. After logging in the browser it was not accepting my username and password to login to Azure.What it says is I am not able to login to '579a7132-0e58-4d80-b1e1-7a1e2d337859', and my user account doesn't exist for login. I checked the GUID but I was not able to find it anywhere associated on my Azure subscription.

Check another solved issue
AzCopy copy transfer fails with 403 This request is not authorized to perform this operation using this permission 

azcopy login
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code GRD2BJ93B to authenticate.

INFO: Logging in under the "Common" tenant. This will log the account in under its home tenant.
INFO: If you plan to use AzCopy with a B2B account (where the account's home tenant is separate from the tenant of the target storage account), please sign in under the target tenant. 
Error
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 remove 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.

Microsoft Azure cloud azcopy login storage account tool blob binary large object Microsoft devicelogin sign in to your account tenant-id Microsoft services user account not exist.png

You require a Tenant ID details under Microsoft Azure Active Directory >> Default Directory >> Overview to proceed.

Microsoft Azure Default Directory Azure Active Directory Tenant ID UID onmicrosoft.com storage accounts blobs container properties azcopy copy list login switch tenant.png

After checking help of azcopy login with below command, I saw --tenant-id parameter, you can grab it from Azure active directory. Again the process is same, to sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXX to authenticate. 

azcopy login --help
azcopy login --tenant-id xxxxxxx-xxxxxx-xxxxx-xxxxx-xxxxxxxxxxx
azcopy list "https://newstorebabu.blob.core.windows.net/firstfolder"

microsoft azure login azcopy login --tenant-id uid cloud storage account unmanaged managed disk blob object file share copy migrate date to azure cloud azcopy.exe devicelogin.png

Once you have logged in successfully in to the azure storage azcopy.exe command line application on your device. You may close the browser window tab to further work on command line.
Microsoft Azure account sign in to your account Azure storage Azcopy you have signed to application on your device you may close this window storage accounts blob container.png

To verify that I am successfully connected to Azure azcopy storage account , I checked list of files on storage accounts blob container, all looks good.

Microsoft azure azcopy list Authentication to destination using Azure ad storage account blog container folder migration data paas cloud platform as a service.png

Useful Articles
Part 1: Create and deploy a website with Microsoft Azure web app service plan
Part 2: Configure a custom domain in Azure Web Apps
PART 1 : MICROSOFT AZURE CREATION AND CONFIGURATION OF VPN TUNNEL SERIES
PART 2 : MICROSOFT AZURE CREATING RESOURCE GROUP 
PART 3 : MICROSOFT AZURE CREATING AND ADMINISTERING VIRTUAL NETWORK (VNET) 
PART 3.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTERING VIRTUAL NETWORK (VNET)
PART 4 : MICROSOFT AZURE CREATING AND ADMINISTRATING LOCAL NETWORK GATEWAY VPN
PART 4.1 : MICROSOFT AZURE POWERSHELL CREATING AND ADMINISTRATING LOCAL NETWORK GATEWAY 

Go Back



Comment

Blog Search

Page Views

12273763

Follow me on Blogarama