SIMULATION -
You need to configure network connectivity between a virtual network named VNET1 and a virtual network named VNET2. The solution must ensure that virtual machines connected to VNET1 can communicate with virtual machines connected to VNET2.
To complete this task, sign in to the Azure portal and modify the Azure resources.
Correct Answer
You need to configure VNet Peering between the two networks. The questions states. Therefore, we need to configure the peering to allow just the one-way communication.
- In the Azure portal, type Virtual Networks in the search box, select Virtual Networks from the search results then select VNET1. Alternatively, browse to Virtual Networks in the left navigation pane.
- In the properties of VNET1, click on Peerings.
- In the Peerings blade, click Add to add a new peering.
- In the Name of the peering from VNET1 to remote virtual network box, enter a name such as VNET1-VNET2 (this is the name that the peering will be displayed as in VNET1)
- In the Name of the peering from remote virtual network to VNET1 box, enter a name such as VNET2-VNET1 (this is the name that the peering will be displayed as in VNET2).There is an option Allow virtual network access from VNET to remote virtual network. This should be left as Enabled.
- In the Virtual Network box, select VNET2.
- For the option Allow virtual network access from remote network to VNET1, click the slider button to Disabled.
- Click the button to save the changes.