CmdID / az / az network / az network local-gateway
az network local-gateway create
Create a local VPN gateway. Azure CLI reference
1 example 7 options Its page in the Azure CLI reference
Examples
Create a Local Network Gateway to represent your on-premises site.
az network local-gateway create -g MyResourceGroup -n MyLocalGateway --gateway-ip-address 23.99.221.164 --local-address-prefixes 10.0.0.0/24 20.0.0.0/24Identify-gName of resource group.-nName of the local network gateway.--gateway-ip-addressGateway's public IP address.--local-address-prefixesList of CIDR block prefixes representing the address space of the OnPremise VPN's subnet.Options
--asnAutonomous System Number to use for the BGP settings.--bgp-peering-addressIP address from the OnPremise VPN's subnet to use for BGP peering.--gateway-ip-addressGateway's public IP address.--local-address-prefixes, --address-prefixesList of CIDR block prefixes representing the address space of the OnPremise VPN's subnet.--name, -nName of the local network gateway.--peer-weightWeight (0-100) added to routes learned through BGP peering.--tagsSpace-separated tags: key[=value] [key[=value] ...].