Azure CLI - unable to change the region of mounted storage

braxx 436 Reputation points

According to the docs:

persisting-shell-storage (secondary storage part)

I should be able to mount my existing storage created in eastus2 to Azure shell CLI
Unfortunatelly it doesn't work.

I am trying to mount my storage via Azure CLI running the command:

clouddrive mount -s mySubscription -g myRG -n storageAccountName -f fileShareName  

Getting the error:

"ERROR: The storage account is not in the valid location. Expect: eastus Actual: eastus2"  

Can someone explain it?
Can I mount my storage or have to create another one in f.i. (primary region)?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,558 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,156 Reputation points Microsoft Employee

    Hello @braxx ,
    You need not create a new storage account but you will have to unmount the existing cloud drive by using Dismount-CloudDrive command in powershell.
    Once you open the new cloud shell session , it will ask for all those details.


    0 comments No comments