nerdexam
Microsoft

AZ-104 · Question #400

You have an Azure subscription named Subscription1 that contains the resource groups shown in the following table. In RG1, you create a virtual machine named VM1 in the East Asia location. You plan…

The correct answer is A. Create VNET1 in RG2, and then set East Asia as the location. E. Create VNET1 in RG1, and then set East Asia as the location. A virtual network must be created in the same Azure region as the virtual machine it connects to, though it can reside in a different resource group.

Submitted by renata2k· Mar 4, 2026Configure and manage virtual networking

Question

You have an Azure subscription named Subscription1 that contains the resource groups shown in the following table. In RG1, you create a virtual machine named VM1 in the East Asia location. You plan to create a virtual network named VNET1. You need to create VNET1, and then connect VM1 to VNET1. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

Options

  • ACreate VNET1 in RG2, and then set East Asia as the location.
  • BCreate VNET1 in a new resource group in the West US location, and then set West US as the
  • CCreate VNET1 in RG1, and then set East US as the location.
  • DCreate VNET1 in RG2, and then set East US as the location.
  • ECreate VNET1 in RG1, and then set East Asia as the location.

How the community answered

(63 responses)
  • A
    79% (50)
  • B
    6% (4)
  • C
    11% (7)
  • D
    3% (2)

Why each option

A virtual network must be created in the same Azure region as the virtual machine it connects to, though it can reside in a different resource group.

ACreate VNET1 in RG2, and then set East Asia as the location.Correct

Virtual machines and virtual networks must reside in the same Azure region to connect. Creating VNET1 in RG2 (a different resource group) but in the East Asia region (same region as VM1) is a valid way to connect VM1 to VNET1.

BCreate VNET1 in a new resource group in the West US location, and then set West US as the

Virtual machines and virtual networks cannot establish direct connectivity if they are located in different Azure regions (West US for VNET1 vs. East Asia for VM1).

CCreate VNET1 in RG1, and then set East US as the location.

Virtual machines and virtual networks cannot establish direct connectivity if they are located in different Azure regions (East US for VNET1 vs. East Asia for VM1).

DCreate VNET1 in RG2, and then set East US as the location.

Virtual machines and virtual networks cannot establish direct connectivity if they are located in different Azure regions (East US for VNET1 vs. East Asia for VM1).

ECreate VNET1 in RG1, and then set East Asia as the location.Correct

Virtual machines and virtual networks must reside in the same Azure region to connect. Creating VNET1 in RG1 (the same resource group) and in the East Asia region (same region as VM1) is a valid way to connect VM1 to VNET1.

Concept tested: Azure Virtual Network regional scope for VM connectivity

Source: https://learn.microsoft.com/azure/virtual-network/virtual-networks-overview#virtual-networks-in-azure

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice