Question

Difficulty: EasyAzure Resources, Resource Groups, Subscriptions, and Management Groups

A company has an Azure resource group named RG-Core that is located in the East Asia region. A developer needs to deploy a new virtual machine in the West US region. Which action should the developer take to deploy the virtual machine?

  1. A
    Create a new resource group in the West US region and nest it inside RG-Core, then deploy the virtual machine there.
  2. B
    Deploy the virtual machine into RG-Core, which automatically forces the virtual machine's location to be East Asia.
  3. Deploy the virtual machine directly into RG-Core and specify the West US region as the location for the virtual machine.Answer
  4. D
    Change the region of RG-Core to West US before deploying the virtual machine, because a resource group's location must match the resource's location.

Answer

Deploy the virtual machine directly into RG-Core and specify the West US region as the location for the virtual machine.
The correct action is to deploy the virtual machine directly into the existing resource group while setting the virtual machine's region to the desired target region. Azure resources are not required to be in the same region as the resource group that contains them; the resource group's region only specifies where its metadata is stored.

Step-by-Step Solution

1
Identify the destination resource group (RG-Core in East Asia) and the desired resource location (West US).
The target locations for the container (resource group) and the resource (virtual machine) are different.
To determine whether there are constraints preventing cross-region resource placement inside a resource group.
2
Evaluate if Azure resource groups support nesting.
Nesting is not supported in Azure resource groups.
To rule out options suggesting creating a sub-resource group inside RG-Core.
3
Apply the rule regarding resource group metadata location vs. resource location.
Resources can be deployed in a different region than their containing resource group.
To confirm that the virtual machine can be directly added to RG-Core while residing in West US.

Key Concept

Azure resource groups serve as logical containers for resources, but the resources themselves can reside in any Azure region, independent of the resource group's location. Resource groups cannot be nested.
Estimated Time:45s
Rate this question