| ms.author | cherylmc |
|---|---|
| author | cherylmc |
| ms.date | 12/02/2024 |
| ms.service | azure-vpn-gateway |
| ms.topic | include |
To view a list of the local network gateways, use the az network local-gateway list command.
az network local-gateway list --resource-group TestRG1
[!INCLUDE modify-prefix]
[!INCLUDE modify-gateway-IP]
Verify that the shared key value is the same value that you used for your VPN device configuration. If it isn't, either run the connection again using the value from the device, or update the device with the value from the return. The values must match. To view the shared key, use the az network vpn-connection-list.
az network vpn-connection shared-key show --connection-name VNet1toSite2 --resource-group TestRG1
To find the public IP address of your virtual network gateway, use the az network public-ip list command. For easy reading, the output for this example is formatted to display the list of public IPs in table format.
az network public-ip list --resource-group TestRG1 --output table