You have an azure subscription named Subscription 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 VNET, and then connect VM1 to VNET1.
What are two possible ways to achieve this goal? Each correct answer presents a complete a solution. NOTE: Each correct selection is worth one point.
A . Create VNET1 in RG2, and then set East Asia as the location.
B . Create VNET1 in a new resource group in the West US location, and then set West US as the location.
C . Create VNET1 in RG1, and then set East Asia as the location
D . Create VNET1 in RG1, and then set East US as the location.
E . Create VNET1 in RG2, and then set East US as the location.
Answer: A,C
Explanation:
A network interface can exist in the same, or different resource group, than the virtual machine you attach it to, or the virtual network you connect it to.
The virtual machine you attach a network interface to and the virtual network you connect it to must exist in the same location, also referred to as a region.
Note, Resource groups can span multiple Regions, but VNets only can hold resources (VMs, Network Adapters) that exists in the same region.
So in this scenario, you need to create VNET1 in any RG and set location as East Asia.
Reference: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface