ContosoResourceGroup contains two Resource Manager virtual networks in different Azure regions:
- CoreServicesVnet hosts TestVM1, which runs Windows Server.
- ManufacturingVnet hosts ManufacturingVM, which runs Windows Server.
No peering exists between the virtual networks. The virtual networks meet the prerequisites for peering, and no other route connects the VM subnets. The applicable security rules permit TCP port 3389 from ManufacturingVM to TestVM1. You are signed in to both VMs over RDP, and you have the Network Contributor role on both virtual networks. You do not yet know the private IPv4 address of TestVM1.
Requirements:
- Before any network change, record evidence that ManufacturingVM cannot reach the private IPv4 address of TestVM1 on TCP port 3389.
- Connect the two virtual networks by using virtual network peering, without deploying any gateway.
- Confirm the peering status on both virtual networks before the final connectivity test.
- Record evidence that ManufacturingVM can then reach the private IPv4 address of TestVM1 on TCP port 3389.
Which actions should you perform, and in which order?
You didn't answer this one.
You first need TestVM1's private IPv4 address from ipconfig, because both tests target it. The baseline Test-NetConnection must fail before you create the peering; otherwise you have no evidence of the starting state. The peering is created from CoreServicesVnet in one Add operation and needs no gateway, because peered traffic uses the Microsoft backbone. After the status shows Connected on both virtual networks, the same test is run again and should now succeed.
- Step 1: On TestVM1, open PowerShell, run ipconfig, and note the IPv4 address. Both connectivity tests need TestVM1's private IPv4 address as the target, and the scenario states it is not yet known, so this comes first.
- Step 2: On ManufacturingVM, run Test-NetConnection <TestVM1 IPv4 address> -Port 3389 and record that the test fails. The test needs the address noted in the previous step, and the scenario requires this baseline evidence before any network change.
- Step 3: In the Azure portal, open CoreServicesVnet, select Peerings and then + Add, configure ManufacturingVnet as the remote virtual network with link names and access allowed in both directions, and then select Add. The peering is the network change, so the stated requirement forces it after the baseline test has been recorded.
- Step 4: Check that the peering status is Connected on both CoreServicesVnet and ManufacturingVnet. The status exists only after the peering has been created, and the scenario requires this check before the final test.
- Step 5: On ManufacturingVM, run Test-NetConnection <TestVM1 IPv4 address> -Port 3389 again and record that the test succeeds. The retest proves the effect of the peering, and the scenario requires it to follow the status check.
- Not needed: Deploy a VPN gateway in each virtual network and create a VNet-to-VNet connection between them. The scenario forbids deploying gateways, and peered virtual networks communicate over the Microsoft backbone without any gateway.
- Not needed: On ManufacturingVM, run Test-NetConnection against the public IP address of TestVM1 on port 3389. The requirements call for evidence about TestVM1's private IPv4 address, which is the address obtained with ipconfig. A test against a public address does not show connectivity through the peering.