title | description | titleSuffix | author | ms.service | ms.custom | ms.topic | ms.date | ms.author |
---|---|---|---|---|---|---|---|---|
Modify gateway IP address settings: PowerShell |
Learn how to change IP address prefixes for your local network gateway using PowerShell. |
Azure VPN Gateway |
cherylmc |
azure-vpn-gateway |
devx-track-azurepowershell |
how-to |
10/28/2021 |
cherylmc |
Sometimes the settings for your local network gateway AddressPrefix or GatewayIPAddress change. This article shows you how to modify your local network gateway settings. You can also modify these settings using a different method by selecting a different option from the following list:
[!div class="op_single_selector"]
Note
Making changes to a local network gateway that has a connection may cause tunnel disconnects and downtime.
Install the latest version of the Azure Resource Manager PowerShell cmdlets. See How to install and configure Azure PowerShell for more information about installing the PowerShell cmdlets.
[!INCLUDE vpn-gateway-modify-ip-prefix-rm]
[!INCLUDE vpn-gateway-modify-lng-gateway-ip-rm]
You can verify your gateway connection. See Verify a gateway connection.