Cannot access the storage account with the given account key. Please verify that the account key is valid.

MikeRichardson-3493 161 Reputation points
2021-08-26T15:34:17.303+00:00

Hi Azure ML Users, my model fails on the 2nd module with the error:
AzureMLCompute job failed.
BFSMountError: Unable to mount blob fuse file system
Info: Could not mount Azure Blob Container azureml-blobstore-547333bb-90a5-4a1c-b9a2-958870d93883 at workspaceblobstore: Unauthorized. Cannot access the storage account with the given account key. Please verify that the account key is valid.
Info: Failed to setup runtime for job execution: Job environment preparation failed on 10.0.0.5 with err exit status 1.

The only 2 things I did outside the Azure defaults was in creating the Azure ML workspace resource:

  1. I created my own new Storage Account.
  2. created my own Container Registry

I did this so that I could select the lowest priced type in setting up all my resources. Previously, my models ran from Designer, no issues. thank you.

And how do I run this a command?
"az ml workspace sync-keys -w myworkspace -g myresourcegroup" to sync up the key again

screen shot of storage account, showing ML worksspace has access.126843-azure-storage-error1.png

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,337 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,535 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Antara Das 381 Reputation points
    2021-11-30T16:47:05.923+00:00

    @MikeRichardson-3493

    i had the same problem .
    By running az ml workspace sync-keys -w myworkspace -g myresourcegroup on your Azure cli works.
    I had installed azure cli and used with microsoft Powershell.

    Sources :
    install azure cli : https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
    https://learn.microsoft.com/en-us/azure/machine-learning/how-to-change-storage-access-key

    1 person found this answer helpful.
    0 comments No comments

  2. YutongTie-MSFT 53,966 Reputation points Moderator
    2021-09-02T08:49:40.02+00:00

    Hello,

    Hope you have solved this issue. Please make sure you are using the account access key as account key in the setting page in portal.

    You can find account key, SAS token, and service principal information on your Azure portal.

    If you plan to use an account key or SAS token for authentication, select Storage Accounts on the left pane, and choose the storage account that you want to register.

    The Overview page provides information such as the account name, container, and file share name.
    For account keys, go to Access keys on the Settings pane.
    For SAS tokens, go to Shared access signatures on the Settings pane.
    If you plan to use a service principal for authentication, go to your App registrations and select which app you want to use.

    Its corresponding Overview page will contain required information like tenant ID and client ID.

    Please let us know if you still need help.

    Regards,
    Yutong

    0 comments No comments

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.