Complete the code to create a virtual network with the correct address space.
az network vnet create --name MyVNet --resource-group MyResourceGroup --address-prefix [1]The address prefix for a virtual network must be a valid CIDR block like 10.0.0.0/16.
Complete the code to create a virtual network peering from VNet1 to VNet2.
az network vnet peering create --name VNet1ToVNet2 --resource-group MyResourceGroup --vnet-name VNet1 --remote-vnet-id [1] --allow-vnet-accessThe remote virtual network ID must be the full resource ID of the VNet you want to peer with, here VNet2.
Fix the error in the peering command by completing the missing parameter for allowing forwarded traffic.
az network vnet peering update --name VNet1ToVNet2 --resource-group MyResourceGroup --vnet-name VNet1 --set allowForwardedTraffic=[1]The parameter allowForwardedTraffic expects a boolean value true or false. Use true to allow forwarded traffic.
Fill both blanks to create a peering that allows gateway transit and uses remote gateways.
az network vnet peering create --name VNet2ToVNet1 --resource-group MyResourceGroup --vnet-name VNet2 --remote-vnet-id /subscriptions/{subscription-id}/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualNetworks/VNet1 --allow-vnet-access --allow-gateway-transit=[1] --use-remote-gateways=[2]To allow gateway transit and use remote gateways, set allow-gateway-transit to true and use-remote-gateways to true.
Fill all three blanks to create a subnet with the correct name, address prefix, and network security group association.
az network vnet subnet create --resource-group MyResourceGroup --vnet-name MyVNet --name [1] --address-prefix [2] --network-security-group [3]
The subnet name is 'Subnet1'. The address prefix must be a valid CIDR block like 10.0.1.0/24. The network security group must be the name of an existing NSG, here 'MyNSG'.