你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Reset-AzVpnGateway

Resets the scalable VPN gateway.

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