VPN shared keys - az network vpn-connection shared-key

Manage VPN shared keys.

Commands

az network vpn-connection shared-key reset Reset a VPN connection shared key.
az network vpn-connection shared-key show Show a VPN connection shared key.
az network vpn-connection shared-key update Update a VPN connection shared key.

az network vpn-connection shared-key reset

Reset a VPN connection shared key.

az network vpn-connection shared-key reset --connection-name
--key-length
--resource-group

Required Parameters

--connection-name

Connection name.

--key-length

The virtual network connection reset shared key length, should between 1 and 128.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

az network vpn-connection shared-key show

Show a VPN connection shared key.

az network vpn-connection shared-key show --connection-name
--resource-group

Required Parameters

--connection-name

Connection name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

az network vpn-connection shared-key update

Update a VPN connection shared key.

az network vpn-connection shared-key update --connection-name
--resource-group
--value
[--add]
[--remove]
[--set]

Required Parameters

--connection-name

Connection name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

--value

The virtual network connection shared key value.

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty .

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.