How to download a model from AML model registry to local using AZCopy tool

Josh Gong 5 Reputation points Microsoft Employee
2023-08-17T22:58:30.1933333+00:00

Hi,

I want to download a model in Azure Machine Learning model registry to my local. I tried to utilize AzCopy tool to achieve this like below:

azcopy copy "https://9061e6857fb.blob.core.windows.net/test-b8a32350-bd24-586d-90b4-c2bb1babfa84/*" "C:\tmp" --recursive

Note: I was able to find the model storage(9061e6857fb) and container name(test-b8a32350-bd24-586d-90b4-c2bb1babfa84) from model.dump() method with Python SDK.

However, I encountered this: RESPONSE Status: 403 This request is not authorized to perform this operation using this permission. Meanwhile, when I login the Azure portal and navigate to the blob container, I do not have the permission to view anything either(even though I created the model registry and uploaded the model).

My question: is the blob container beneath Azure Machine Learning Model Registry not supposed to be accessed directly, even by the owner? If no, would there be a way to assign proper permission?(I tried to assign my login user with blob data owner role for that container in additional to the owner role I already had, but still got permission denied.)

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,343 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.