Skip to content
Azure Lessons
Azure Lessons
  • Home
  • AWS
  • Azure
    • Azure Virtual Machine
    • Azure Active Directory
    • Azure CLI
    • Azure CLI Commands List
    • Azure Cognitive Services
    • Azure Cosmos DB
    • Azure DevOps
    • Azure Functions
    • Azure PowerShell Commands
    • Azure Sentinel
    • Azure SQL
    • Azure Storage
    • Azure Synapse
  • Blogs
  • FREE EBOOK

Move storage account to another region

July 1, 2024February 5, 2024 by Rajkishore

In this Azure article, we will discuss how to move a storage account to another region.

Table of Contents

  • How to move storage account to another region
    • Approach-1: Using Azure Portal
    • Approach-2: Using PowerShell
  • Azure move storage account to another region – Video Tutorial
  • Wrapping Up

How to move storage account to another region

Basically, if you wish to change the location of your Azure Storage account, what you need to do is, you will have to create a copy of the storage account in the target location or region, and then you need to transfer or move all the data from the source storage account to the target storage account.

You can do this using Azure Portal and by using PowerShell.

Approach-1: Using Azure Portal

The first step is to export the Azure Storage account as a template using the below steps.

  1. Log in to the Azure Portal.
  2. Navigate to your Azure Storage account.
  3. Click on the Export template link from the left navigation under the Automation tab, as shown below.
Azure move storage account to another region

4. Click on the Download option to download the template.

update Azure Storage Account location

5. Now, it will get downloaded as a zip folder like the one below.

Modify Azure Storage Account location

6. You can unzip the folder and keep it.

Now, let’s modify the existing template

We will change the storage account name and location using the below steps

  1. Click on the Create a Resource button.
How to update Azure Storage Account location

2. Search for the template deployment and click on the search result “Template deployment.”

How to modify Azure Storage Account location

3. Click on the Create button.

how to move azure storage account to another location

4. On the Custom deployment window, click on the Build your own template in the editor link as shown below.

how to move azure storage account to another region

5. Click on the Load file button. Select the template.json file that we downloaded and unzipped earlier.

how to move azure storage account to a different location

6. Modify the storage account name and the location.

how to move azure storage account to a different region

7. Click on the Save button to save the changes.

8. On the Custom deployment window, Provide the below details

  • Subscription: Select the subscription that you wish to use here.
  • Resource Group: You can select an existing Resource Group or click on the Create new link and provide a name to create a new Resource Group.
  • Region: Select the required region or location.

Finally, click on the Review + Create button as highlighted below.

move storage account to another region

After clicking on the Review + Create button, It will Start validating all the entries entered by you. For me, it throws an error as the name of the storage account “mytargetstorageaccount” that I have entered was not available, so I changed the storage account name from “mytargetstorageaccount” to “mytargetstorageaccountg,” and the Resource Group name also changed from “demo357” to “demo589”.

move storage account to another region

Now, the validation is successful, and you will see the Create button on the successful validation. Finally, click on the Create button on the next screen, as shown below.

how to move data from one storage account to another in azure

Now, the Storage account has been created successfully. You can check out the below screenshot.

move storage account to another region

Approach-2: Using PowerShell

You can also use the below steps to change Azure Storage Account location using PowerShell.

  1. Execute the below PowerShell command to export the storage account as a template.
$myctx = Get-AzSubscription -SubscriptionId 1cdf4300-dee5-4518-9c9c-feaa72a5cbd1
Set-AzContext $myctx
$myresource = Get-AzResource -ResourceGroupName DEMORG2 -ResourceName demoggh -ResourceType Microsoft.Storage/storageAccounts
Export-AzResourceGroup -ResourceGroupName DEMORG2 -Resource $myresource.ResourceId

Note: Make sure to change the Resource Group and storage account name as per yours.

After executing the above script, I got the JSON file saved on the path below.

Export-AzResourceGroup

2. You can open the template.json file and modify the storage account name and location as we had done in step 6 above.

3. Now, run the below PowerShell script to create a new storage account in your target region.

$myrsgName = "Demo12346"
$region = "centralus"

New-AzResourceGroup -Name $myrsgName -Location "$region"
New-AzResourceGroupDeployment -ResourceGroupName $myrsgName -TemplateUri "DEMORG2.json"  

Note: Make sure to change the Resource Group and region as per yours. Enter the storage account name if it will prompt you to enter.

After executing the above script, I got the below-expected output, and the storage account was created successfully.

azure move storage account to another region

The storage account has been created successfully. Check out the screenshot below.

move storage account to another region

Azure move storage account to another region – Video Tutorial

You may also like following the articles below

  • How to enable Azure Storage Account Public Access
  • How to create a Private Endpoint in Azure

Wrapping Up

This Azure article discussed changing the Azure Storage Account location using Azure Portal and PowerShell. Thanks for reading this article !!!

Microsoft Azure
Rajkishore

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.

Set-AzStorageAccount
New-AzStorageContext
Subscribe To Our YouTube Channel Subscribe to AzureLessons YouTube Channel

Recent Posts

  • Azure VM Backup Pricing
  • Azure VM
  • What Is Edge Location In AWS
  • DP-300 Certification
  • What Is Cloud Shell In Azure
  • About Us
  • Contact Us
  • Privacy Policy
  • Sitemap
© 2026 Azure Lessons
Azure
Virtual
Machine
By: Rajkishore
Azure Consultant
PDF

Free 25+ page PDF

Download free Azure Virtual Machine PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!

No spam, ever. You will also get new Azure tutorials by email. Unsubscribe any time. Privacy policy

Check your inbox

Your Azure Virtual Machine PDF is on its way to . Can't find it in a few minutes? Look in your Promotions or Spam folder.