Azure 存储帐户故障转移和重置复制到 RA-GRS?

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

我有一个带有 RA-GRS(美国西部和美国东部)的 Azure 存储帐户,我可以使用以下命令进行故障转移

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

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

但是第二条命令执行失败,指示“当前正在此存储帐户上执行需要独占访问的操作”

因为失败,SKU 没有设置为 Standard_RAGRS 并且仍然是 LRS。

如何在包含“--no-wait”参数的故障转移后将 SKU 设置为“Standard_RAGRS”。

--no-wait 是 az CLI 本身的一部分,而不是基础操作。它告诉 az CLI return,甚至在基础操作完成之前。因此,您的存储帐户故障转移过程可能仍在 运行 - 并且可能需要一些时间才能完成。在此之前,您无法对其执行其他更新操作。