Skip to content Skip to sidebar Skip to footer

Azure Blob Storage Error: The Specified Resource Does Not Exist

I'm trying to upload file in Azure blob storage through REST API. Acess level for container is set to - Container(anonymous read access to container and bolb). Sharing code and res

Solution 1:

Of course your solution is great, but we always use python-sdk in code like this:

# [START upload_a_blob]# Upload content to block blobwithopen(SOURCE_FILE, "rb") as data:
                blob_client.upload_blob(data, blob_type="BlockBlob")
            # [END upload_a_blob]# [START download_a_blob]withopen(DEST_FILE, "wb") as my_blob:
                download_stream = blob_client.download_blob()
                my_blob.write(download_stream.readall())
            # [END download_a_blob]

Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-samples-python?toc=/azure/storage/blobs/toc.json

Using rest api requires some headers, check here: https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob

Post a Comment for "Azure Blob Storage Error: The Specified Resource Does Not Exist"