Here, you can find additional commands that are required to create a gateway for the VNets inside a single resource group:
- Create subnets in both VNets. Here, we are using the az network vnet subnet create command to create a subnet with a specific name for our gateways:
$ az network vnet subnet create --vnet-name "vnet1" -n "GatewaySubnet" -g "azureadministratorvnets-euw-rg" --address-prefix 10.0.0.0/28
$ az network vnet subnet create --vnet-name "vnet2" -n "GatewaySubnet" -g "azureadministratorvnets-euw-rg" --address-prefix 10.1.0.0/28
A gateway subnet name has to be set to GatewaySubnet—if it is set to anything else, the process of creating a VPN gateway will fail.
- Once the subnets in both networks are created, we will need public IP addresses, which will be assigned to gateways. For this, we will use the az network public-ip create command to pass the...