skip to Main Content

Azure – Can't Create Blob Container: This request is not authorized to perform this operation

I'm trying to create a blob container within an Azure storage account with Azure's Python API. def create_storage_container(storageAccountName: str, containerName: str): print( f"Creating storage container '{containerName}'", f"in storage account '{storageAccountName}'" ) credentials = DefaultAzureCredential() url = f"https://{storageAccountName}.blob.core.windows.net" blobClient = BlobServiceClient(account_url=url,…

VIEW QUESTION

Azure Data Storage: Unable to upload file (Not authorized to perform this operation using this permission)

I'm trying to follow the example to upload a file to Azure Data Storage as mentioned in the documentation : https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-dotnet?tabs=visual-studio%2Cmanaged-identity%2Croles-azure-portal%2Csign-in-azure-cli%2Cidentity-visual-studio Following is my code: using Azure.Storage.Blobs; using Azure.Storage.Blobs.Models; using System; using System.IO; using Azure.Identity; // TODO: Replace <storage-account-name> with…

VIEW QUESTION
Back To Top
Search