question

braxx avatar image
0 Votes"
braxx asked SumanthMarigowda-MSFT commented

Azure CLI - unable to change the region of mounted storage

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered

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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.