Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureVNetGateway

Remove-AzureVNetGateway

microsoft.windowsazure.commands.servicemanagement.dll, microsoft.windowsazure.commands.servicemanagement.network.dll

Synopsis

Removes the Microsoft Azure virtual network gateway to the specified virtual network.

Syntax

Remove-AzureVNetGateway [-VNetName] [<CommonParameters>]

Detailed Description

The Remove-AzureVNetGateway cmdlet removes the virtual network gateway to the specified Microsoft Azure virtual network. A virtual network gateway is a VPN endpoint for connecting to a virtual network. If you remove the virtual network gateway, the underlying virtual network is unaffected and still in place, allowing you to create a new gateway with New-VNetGateway. However, the shared key for the gateway will be different, requiring reconfiguration of the VPN device at the local network site.

Parameters

-VNetName <String>

Specifies the name of the virtual network to remove the gateway from.

Aliases

None

Required?

true

Position

0

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- Example 1 --------------------------

This command removes the virtual network gateway (VPN endpoint) from the "MyProdNet" virtual network.

PS C:\> C:\PS>Remove-AzureVNetGateway –VNetName "MyProdNet"