简体   繁体   中英

Azure storage account fail over

Following this link for Azure storage fail over process all this link says about manual way of initiating the fail over process.

Is there way to do this failover process programmatically? without any manual intervention.

What is the clue or exception to trigger the fail over process?

Will Azure storage SDK raise any particular exception, in case of storage account unavailability?

How to replicate/simulate storage account unavailability to do development & testing?

You can automate Azure Account failover with REST, Powershell or AZ CLI.

Powershell: https://docs.microsoft.com/en-us/azure/storage/common/storage-initiate-account-failover?tabs=azure-powershell#tabpanel_CeZOj-G++Q_azure-powershell

AZ CLI:

az storage account show \ --name accountName \ --expand geoReplicationStats
az storage account failover \ --name accountName

REST:

https://docs.microsoft.com/en-us/rest/api/storagerp/storageaccounts/failover

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM