【问题标题】:Azure Storage Account failover and resetting Replication to RA-GRS?Azure 存储帐户故障转移并将复制重置为 RA-GRS?
【发布时间】:2021-04-13 19:58:51
【问题描述】:

我有一个带有 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”。

【问题讨论】:

    标签: azure failover azure-storage-account


    【解决方案1】:

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

    【讨论】:

    • 谢谢,有道理。我不想在故障转移之前保持执行,而是希望让它在后台运行并希望配置 SKU 故障转移后。我如何实现这一目标?有没有办法监控故障转移过程的状态,这样我就可以写一个函数定期检查和设置SKU..
    • az storage account failover -n mystorageaccount -g MyResourceGroup --no-wait az storage account show -n mystorageaccount --expand geoReplicationStats docs.microsoft.com/en-us/cli/azure/storage/…
    猜你喜欢
    • 1970-01-01
    • 2020-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-22
    • 1970-01-01
    • 2017-06-28
    相关资源
    最近更新 更多