Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
241 views
in Technique[技术] by (71.8m points)

Azure Storage Account failover and resetting Replication to RA-GRS?

I have an Azure Storage Account with RA-GRS (West US & EAST US) and I could failover using the below command

az storage account failover --no-wait --yes --name storageaccountName

az storage account update --name storageaccountName --resource-group rg --sku Standard_RAGRS

However the second command failed to execute indicating "Operation is currently performing on this storage account that requires exclusive access "

As it failed SKU didn't set as Standard_RAGRS and still LRS.

How do I set the SKU to "Standard_RAGRS" after failover with "--no-wait" parameter included.

question from:https://stackoverflow.com/questions/65623436/azure-storage-account-failover-and-resetting-replication-to-ra-grs

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

--no-wait is part of the az CLI itself, not the underlying operation. It tells az CLI to return, even before the underlying operation is finished. So your storage account failover process is probably still running - and might take a bit to complete. Before that isn't done, you cannot do another update operation on it.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...