Can't access the blob folder but files inside it are able to download

Rajat Sharma 11 Reputation points
2022-07-03T22:01:02.917+00:00

I have azure storage where I am using containers to store blobs. I am trying to download the blob from this container. But either using python SDK or rest, I am getting error "The specified blob does not exist." but when I giving the full path with the final file such as .txt or whatever instead of root folder, it is able to download it.

For example:
following URL gives error https://mlflowsmodeltorage.blob.core.windows.net/mlflow-test/110/63e7b9f2482b45e29b8c2983fa9522ef/artifacts/models The specified blob does not exist.

but the URL https://mlflowsmodeltorage.blob.core.windows.net/mlflow-test/110/63e7b9f2482b45e29b8c2983fa9522ef/artifacts/models/conda.yaml able to download the file.

Same thing happens with the python SDK. But I want to download the whole folder rather than the files inside it.

How can I achieve it.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,944 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,639 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,221 Reputation points
    2022-07-07T09:01:23.723+00:00

    @Rajat Sharma Thank you for reaching out to Microsoft Q&A. I understand that you are having issues with accessing your Blob folder so that you can download all the blobs inside the same, is that right?

    When you say Blob folder, what you mean is the container which has all the Blobs inside it. If the Access Level for the Container is set to allow read access to Blob only, then you will only be able to access the specific Blobs inside this container but not the actual container that has all the Blobs inside. Therefore, you may need to change this access level to allow access to containers and blobs so you can access the specific container as well as the individual blobs inside it.

    "By default, container data is private to the account owner. Use 'Blob' to allow public read access for blobs. Use 'Container' to allow public read and list access to the entire container." Please refer to this document for more details. Hope this helps.

    Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    0 comments No comments