Azure CLI - unable to change the region of mounted storage

braxx 436 Reputation points
2022-04-05T10:41:59.203+00:00

According to the docs:

1189323
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. east.us (primary region)?

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

1 answer

Sort by: Most helpful
  1. shiva patpi 13,171 Reputation points Microsoft Employee
    2022-04-06T23:36:21.263+00:00

    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.

    Regards,
    Shiva.

    0 comments No comments