Creating a connection between resources, which are not in the same resource group, will require providing additional information—a full identifier of a resource, which you will get with the az network vnet-gateway show command. Let's now create a connection between different regions:
- We will start by creating two subnets in separate VNets. To do this, we will use the very same command that we used in the first step of the previous section. The only difference is that we will use a separate resource group for the second VNet:
$ az network vnet subnet create --vnet-name "vnet1" -n "GatewaySubnet" -g "azureadministratorvnet-euw-rg" --address-prefix 10.0.0.0/28
$ az network vnet subnet create --vnet-name "vnet2" -n "GatewaySubnet" -g "azureadministratorvnet-eun-rg" --address-prefix 10.1.0.0/28
- The next step will be to create public IP addresses for the VNets and deploy...