Closed
Description
We are working on creating scripts to failover our storage accounts (RA-GRS configuration). The failover documentation mentions that after failover the account is configured as LRS and needs to be re-enabled as RA-GRS. We use the Set-AzStorageAccount cmd (after failing over the account to the secondary region) to covert the account back from LRS to RA-GRS. Few questions about this flow:
- When the primary region is in an outage, will the Set-AzStorageAccount cmd succeed in converting the storage account from LRS to RA-GRS?
-
If yes, what happens to the replication while primary region is under outage?
-
If no, what is the correct process to follow to convert the account back to RA-GRS?
- Is the Set-AzStorageAccount cmd asynchronous? We have had cases where in our testing the above command succeeded, but the portal was still showing the account as LRS. Also, the when we ran the Get-AzStorageAccount cmd call with -IncludeGeoReplicationStats as a parameter, it failed with the error "AccountType Standard_LRS is invalid. ".