'azcopy login not granting permissions

I want to use azcopy to download/upload to my blob storage.

Using azcopy login, opening the browser and login works fine.

$ azcopy login --tenant-id xxxx
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code xxx to authenticate.

INFO: Login succeeded.

Now I am trying:

$ azcopy ls https://xxxx.blob.core.windows.net/xxxx

failed to obtain credential info: Login Credentials missing. No SAS token or OAuth token is present and the resource is not public

The container access level is set to private, the authentication method set to Azure AD User Account and I am Storage Blob Data Owner and Owner.

What am I doing wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source