Reset-AzVpnGateway

Resets the scalable VPN gateway.

Note

This is the previous version of our documentation. Please consult the most recent version for up-to-date information.

Syntax

Reset-AzVpnGateway
     -VpnGateway <PSVpnGateway>
     [-DefaultProfile <IAzureContextContainer>]
     [<CommonParameters>]
Reset-AzVpnGateway
     -ResourceGroupName <String>
     -Name <String>
     [-AsJob]
     [-DefaultProfile <IAzureContextContainer>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]
Reset-AzVpnGateway
     -InputObject <PSVpnGateway>
     [-AsJob]
     [-DefaultProfile <IAzureContextContainer>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]
Reset-AzVpnGateway
     -ResourceId <String>
     [-AsJob]
     [-DefaultProfile <IAzureContextContainer>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

Resets the VpnGateway

Examples

Example 1:

$Gateway = Get-AzVpnGateway -Name "ContosoVirtualGateway" -ResourceGroupName "RGName"
Reset-AzVpnGateway -VpnGateway $Gateway

Parameters

-AsJob

Run cmdlet in the background

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VpnGateway
Type:PSVpnGateway
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

PSVpnGateway

String

Outputs

PSVpnGateway