CmdID / az / az network / az network vpn-connection / az network vpn-connection shared-key
az network vpn-connection shared-key reset
Reset a VPN connection shared key. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--connection-nameConnection name.--key-lengthThe virtual network connection reset shared key length, should between 1 and 128.