Skip to content
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

Azure: Use DefaultAzureCredential over storage key access to blob container #59

Open
acarter24 opened this issue May 26, 2023 · 0 comments

Comments

@acarter24
Copy link

acarter24 commented May 26, 2023

Would you consider use of DefaultAzureCredential for authentication to Azure Blob Storage? Maybe falling back to the current 'storage account string' approach. Would love to be able to turn off storage account key access for addtl security, and just used managed identity/logged in user when local etc.

from azure.identity import DefaultAzureCredential()
account_url = "https://<mystore>.blob.core.windows.net"
default_credential = DefaultAzureCredential()

# Create the BlobServiceClient object
blob_service_client = BlobServiceClient(account_url, credential=default_credential)

https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/README.md#defaultazurecredential

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant