Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure - What is the purpose of a resource group location?

Tags:

azure

I understand that resources from different locations can all reside within one resource group. But when creating a new Resource Group, what is the purpose of choosing a location? Does it have any meaning?

Thanks

like image 528
user959729 Avatar asked Jun 16 '15 16:06

user959729


People also ask

Why does a resource group need a location?

Your location is important when it comes to compliance. Your company or government may have specific rules, regulations, or laws about where you must store certain data. This metadata benefits you, too: it allows you to better manage your resources for cost management and security and access controls.

What is the purpose of a resource group in Azure?

Resource groups (RG) in Azure is a new approach to group a collection of assets in logical groups for easy or even automatic provisioning, monitoring, and access control, and for more effective management of their costs.

What is the purpose of a resource group?

The resource group collects metadata from each individual resource to facilitate more granular management than at the subscription level. This not only has advantages for administration and cost management, but also for applying role-based access controls.

Why do you need to specify a location Azure region when creating a resource group?

The main reason for specifying the location of a resource group is to specify a location for data/metadata for the deployment to be stored in... It also makes the API consistent (think of the paths in REST API calls) but the primary reason is storage during deployment.


2 Answers

When creating a resource group, you need to provide a location for that resource group. You may be wondering, "Why does a resource group need a location? And, if the resources can have different locations than the resource group, why does the resource group location matter at all?" The resource group stores metadata about the resources. Therefore, when you specify a location for the resource group, you are specifying where that metadata is stored. For compliance reasons, you may need to ensure that your data is stored in a particular region.

https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-group-overview

like image 160
Javi Kroonenburg Avatar answered Oct 10 '22 09:10

Javi Kroonenburg


Actually it does matter:

Azure Resource Manager overview:

If the resource group's region is temporarily unavailable, you can't update resources in the resource group because the metadata is unavailable. The resources in other regions will still function as expected, but you can't update them.

For more information about building reliable applications, see Designing reliable Azure applications.

So we could imagine a situation where resource group is defined in LocationA, and all resources in that group are located in different region. When resource group region is unavailble then they may be issues when accessing metadata. Without metadata, it may not be able to failover.

like image 12
Lukasz Szozda Avatar answered Oct 10 '22 10:10

Lukasz Szozda