CmdID

CmdID / az / az network / az network local-gateway

az network local-gateway update

Update a local VPN gateway. Azure CLI reference

2 examples 7 options Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Update a Local Network Gateway provisioned with a 10.0.0.0/24 address prefix with additional prefixes.

az network local-gateway update -g MyResourceGroup -n MyLocalGateway --address-prefixes 10.0.0.0/24 20.0.0.0/24 30.0.0.0/24Identify
-gName of resource group.
-nName of the local network gateway.
--address-prefixesList of CIDR block prefixes representing the address space of the OnPremise VPN's subnet.

Update a local VPN gateway. (autogenerated)

az network local-gateway update --gateway-ip-address 23.99.221.164 --name MyLocalGateway --resource-group MyResourceGroupIdentify
--gateway-ip-addressGateway's public IP address.
--nameName of the local network gateway.
--resource-groupName of resource group.

Options

7 in the Azure CLI reference
--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] ...].