-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AuthorizationFailure error while using DefaultAzureCredential authorization for Azure Storage Blob for creating new blob #13101
Comments
@prashanthmadduri does Storage Blob Data Contributor role work? It feels that Owner role should have all of and more permissions than Contributor but worth a quick try. |
@jeremymeng We have added below attached three roles at storage account level |
Please double check you have followed the doc. https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob#with-defaultazurecredential-from-azureidentity-package
|
If it still doesn't work, please provide more details, for example, the failed request id, so we can take look at the log. |
We have followed the steps mentioned above. Please find the request id for the same.
|
|
@ljian3377 Thank you for your inputs. It started working as expected after giving |
Good to know. Will close the issue now. You can re-open it if anything is needed from us for this. Thanks. |
Microsoft.ExtendedLocation/customLocations Swagger (Azure#13101) * save before rebase * rebase * recreating PR from private repo to be merged * updating python readme * remove readonly for consistency with internal repo - update python readme for sdk gen * after discussion - add back readonly on the systemdata
Describe the bug
As per the example provided here https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-blob/samples/javascript/azureAdAuth.js. The Azure AD authentication should work but it is failing with
AuthorizationFailure
error.We have register the application and provided access to
https://storage.azure.com/user_impersonation
and also enabledAccess tokens
,ID tokens
forImplicit grant and hybrid flows
. Also, assigned theStorage Blob Data Owner
role to the user using. We could able create blob usingInteractiveBrowserCredential
with same application registration values.To Reproduce
Steps to reproduce the behavior:
https://storage.azure.com/user_impersonation
access.Storage Blob Data Owner
role to user.Storage Blob
using Azure AD using@azure/identity
but failing as explained above.Expected behavior
A clear and concise description of what you expected to happen.
Expecting the
Storage Blob
accessing using Azure AD using@azure/identity
as provided sample here https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/storage/storage-blob/samples/javascript/azureAdAuth.js using AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET values.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: