In this Azure article, we will discuss how to change the location or region of your Azure Storage account.
Table of Contents
How to change Azure Storage Account location
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 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.
- Log in to the Azure Portal.
- Navigate to your Azure Storage account.
- Click on the Export template link from the left navigation that is present under the Automation tab as shown below.

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

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

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
- Click on the Create a Resource button.

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

3. Click on the Create button.

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

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

6. Modify the storage account name and the location.

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 you can 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.

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”.

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.

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

Approach-2: Using PowerShell
You can also use the below steps to change Azure Storage Account location using PowerShell.
- 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 below path.

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.

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

You may also like following the below articles
Wrapping Up
In this Azure article, we discussed how to change Azure Storage Account location using Azure Portal and PowerShell. Thanks for reading this article !!!