Reputation: 1536
I have a setup in azure with a bunch of resources combined in a resource group. I want my services to be located in west-europe, so all my resources are there (where possible)
I just noticed that when creating the resource group, i accidentally used West US.
So the current setup is:
Resource Group 1 (West US)
Can I change the location of the resource group without having to create a new one and migrate everyting?
And maybe more importantly: Should i change the location or does it not impact anything?
Thanks!
Upvotes: 24
Views: 49594
Reputation: 1
use "Azure Resource mover" for below activities
Upvotes: 0
Reputation: 73
Resource group's location can't be changed per se. But by moving resources around I was able to achieve changing the resource group location.
The situation I was in is that I had my resourceGroup
set to WestUS
location and all the resources within the group set to WestUS2
. This was causing issues with my ARM templates. So these are the steps of how I solved this:
resourceGroup-temp
resourceGroup-temp
. This will depend on your particular situation, I only moved my Cosmos DB and storage account because I knew my FunctionApp and App plans can be recreated from my pipeline upon deployment.resourceGroup
resourceGroup
but with the correct location this time.resourceGroup-temp
to resourceGroup
resourceGroup-temp
Voilà you have your resources in a resource group with the same name and now the correct location. Good luck.
Upvotes: 1
Reputation: 8147
Regarding your last question:
Should i change the location or does it not impact anything?
It does impact somehow, but its little: The resourcegroup holds metadata of the resources within. That metadata is located in the location of the resourcegroup. So the impact is witnessed when you use the Azure Portal and the information is presented to you.
For example: The other day Brazil South was having troubles, and the portal was taking forever on presenting me the information, because I have resource groups located in Brazil South.
Upvotes: 1
Reputation: 159
This is not possible. But you already know that by now. Alternative is that you can shift services/resources from one resource group to other, where both resides in different geo location.
Upvotes: 0
Reputation: 804
You cannot change the location of the resource group, also moving a resource only moves it to a new resource group. The new resource group may have a different location, but that does not change the location of the resource. You could refer to Move resources to new resource group or subscription for details.
Upvotes: 5
Reputation: 136196
You can't change the location of a resource group.
It wouldn't matter where your resource group is created. It is just a logical container of resources inside it.
Your resources inside a resource group need not be in the same region as that of the resource group. They can be in any region where the resource is supported.
Upvotes: 39