I wanted to restore storage account using ops backup restore point. If the restore completed to primary region then it will automatically restore to secondary region as well or we need to restore again to secondary region ?

1

There are 1 best solutions below

5
Sampath On

Yes, Azure Storage supports account failover for geo-redundant storage accounts With Disaster recovery and storage account failover but Data is not moved outside of the source and target regions that you have selected via Azure Site Recovery. The secondary region will not immediately be restored if you restore the storage container backup to the primary region.

  • Disaster recovery and storage account failover:
az storage account show \ --name accountName \ --expand geoReplicationStats

enter image description here

az storage account failover \ --name accountName

enter image description here

  • Choose the right redundancy option
  • Design for high availability
 BlobContainerClient? containerClient = null;

    BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString);

    CancellationTokenSource source = new CancellationTokenSource();
    CancellationToken cancellationToken = source.Token;

    
    string containerName = $"container-{Guid.NewGuid()}";

    Console.WriteLine("\nCreating container");
    containerClient = await blobServiceClient.CreateBlobContainerAsync(containerName, PublicAccessType.None, null, cancellationToken);

    if (await containerClient.ExistsAsync())
    {
        Console.WriteLine($"Created container {containerClient.Name}\n");
    }

 
    BlobClient blobClient = containerClient.GetBlobClient(blobName);

  
    Console.WriteLine($"\nUploading blob: {blobName}");
    await blobClient.UploadAsync(BinaryData.FromString("If at first you don't succeed, hopefully you have a good retry policy.").ToStream(), overwrite: true);

enter image description here

  • For more details refer this MSDOC for storage account failover.