Complete the code to create a VNet peering from VNetA to VNetB.
az network vnet peering create --name VNetAtoVNetB --resource-group MyResourceGroup --vnet-name VNetA --remote-vnet [1] --allow-vnet-accessThe remote VNet name must be the target VNet you want to peer with, here it is VNetB.
Complete the code to allow forwarded traffic in the VNet peering.
az network vnet peering create --name VNetBtoVNetA --resource-group MyResourceGroup --vnet-name VNetB --remote-vnet VNetA --allow-vnet-access --allow-[1]-trafficTo allow traffic that is forwarded through a virtual appliance, use --allow-forwarded-traffic.
Fix the error in the peering creation command by completing the missing parameter.
az network vnet peering create --name VNetAtoVNetB --resource-group MyResourceGroup --vnet-name VNetA --remote-vnet VNetB --allow-vnet-access --[1]-gateway-useThe correct parameter to allow gateway transit is --allow-gateway-use.
Fill both blanks to create a peering that allows gateway transit and forwarded traffic.
az network vnet peering create --name VNetBtoVNetA --resource-group MyResourceGroup --vnet-name VNetB --remote-vnet VNetA --allow-[1]-gateway-use --allow-[2]-traffic
Use --allow-gateway-use to allow gateway transit and --allow-forwarded-traffic to allow forwarded traffic.
Fill all three blanks to update an existing peering to allow gateway transit, forwarded traffic, and remote VNet access.
az network vnet peering update --name VNetAtoVNetB --resource-group MyResourceGroup --vnet-name VNetA --set allow[1]gatewayUse=[2] allow[3]traffic=[4]
To update the peering, set allowGatewayUse=true and allowForwardedTraffic=true.