azureazure-storage-emulator

Azure Storage Account - Prepare for a failover fails with "Last sync time is unavailable"


I have an Azure Storage Account of type "RA-GRS" as shown below

enter image description here

WEST US is being Primary and East US is secondary.

While trying to failover to East US it is failing as shown below

enter image description here

How to fix this?

Note: I have followed this article - Prepare for a failover


Solution

  • There is a known issue where account failover is not possible within 4 hours of account creation or the conversion to (RA-)GRS. Either one of these conditions will cause the error you mention.

    we currently have an ongoing issue with account failover wherein it can only be initiated once LastSyncTime is more than 4 hours after account creation time or after the time the account was converted to (RA-)GRS. E.g. if the account was created at 1 pm, then the LST should be 5 pm in order for the failover to work. We're working on the resolution right now, but I don't have the ETA quite yet.

    You should also check the last sync time just to make sure this is available.

    $lastSyncTime = $(Get-AzStorageAccount -ResourceGroupName <resource-group> `
        -Name <storage-account> `
        -IncludeGeoReplicationStats).GeoReplicationStats.LastSyncTime