Azure-docs: Is this code working?

Created on 12 Oct 2018  Â·  2Comments  Â·  Source: MicrosoftDocs/azure-docs

I followed the document to create a console app that retrieves the access_token from MSI. I see the TokenCredential created properly, but code set storageCredential.IsAnonymous to true, thus later it generates StorageException: (Server failed to authenticate the request. Make sure the value of Authorization is fomed correctly including the signatgure. Which version of SDK work for this code? I have verified the environment and test run with Azure CLI after I login in with '--identity'. And, it was working with CLI, which means it is not my environment issue.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cxp doc-bug in-progress storagsvc triaged

Most helpful comment

Found a bug in my side. Resource parameter should be 'storage.azure.com'. I was using my library that set 'managment.azure.com'. I will close this. Sorry.

All 2 comments

@sjyang18 Thank you for the valuable feedback,we are investigating the issue.

Found a bug in my side. Resource parameter should be 'storage.azure.com'. I was using my library that set 'managment.azure.com'. I will close this. Sorry.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jebeld17 picture jebeld17  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments