Skip to content

Commit 6ac5e93

Browse files
committed
update disconnect vpn/p2svpn gateway vpn connections
1 parent 305d56a commit 6ac5e93

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

src/Network/Network/help/Disconnect-AzP2sVpnGatewayVpnConnection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ P2SConnectionConfigurations : [
7171
The p2s vpn gateway object to be modified
7272

7373
```yaml
74-
Type: PSP2SVpnGateway
74+
Type: Microsoft.Azure.Commands.Network.Models.PSP2SVpnGateway
7575
Parameter Sets: ByP2SVpnGatewayObject
7676
Aliases: P2SVpnGateway
7777

@@ -132,10 +132,10 @@ P2s Virtual network gateway resource Id
132132
133133
```yaml
134134
Type: System.String
135-
Parameter Sets: (All)
135+
Parameter Sets: ByP2SVpnGatewayResourceId
136136
Aliases: ResourceId
137137

138-
Required: False
138+
Required: True
139139
Position: Named
140140
Default value: None
141141
Accept pipeline input: True (ByPropertyName)

src/Network/Network/help/Disconnect-AzVirtualNetworkGatewayVpnConnection.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,21 @@ schema: 2.0.0
1111
Disconnect given connected vpn client connections with a given virtual network gateway.
1212

1313
## SYNTAX
14-
14+
### ByVpnGatewayName (Default)
1515
```
1616
Disconnect-AzVirtualNetworkGatewayVpnConnection -ResourceName <String> -ResourceGroupName <String> -InputObject <PSVirtualNetworkGateway> -ResourceId <ResourceId> -VpnConnectionId <VpnConnectionIds> [-AsJob] [<CommonParameters>]
1717
```
1818

19+
### ByVpnGatewayObject
20+
```
21+
Disconnect-AzVirtualNetworkGatewayVpnConnection -InputObject <PSP2SVpnGateway> -VpnConnectionId <VpnConnectionId> [<CommonParameters>]
22+
```
23+
24+
### ByVpnGatewayResourceId
25+
```
26+
Disconnect-AzVirtualNetworkGatewayVpnConnection -ResourceId <String> -VpnConnectionId <VpnConnectionId> [<CommonParameters>]
27+
```
28+
1929
## DESCRIPTION
2030
The **Disconnect-AzVirtualNetworkGatewayVpnConnection** cmdlet enables you to disconnect given connected vpn client connection.
2131

@@ -34,7 +44,7 @@ Virtual network gateway resource group's name
3444

3545
```yaml
3646
Type: System.String
37-
Parameter Sets: (All)
47+
Parameter Sets: ByVpnGatewayName
3848
Aliases:
3949

4050
Required: True
@@ -49,7 +59,7 @@ Virtual network gateway name
4959
5060
```yaml
5161
Type: System.String
52-
Parameter Sets: (All)
62+
Parameter Sets: ByVpnGatewayName
5363
Aliases: VirtualNetworkGatewayName
5464

5565
Required: True
@@ -64,10 +74,10 @@ Virtual network gateway resource Id
6474
6575
```yaml
6676
Type: System.String
67-
Parameter Sets: (All)
77+
Parameter Sets: ByVpnGatewayResourceId
6878
Aliases: ResourceId
6979

70-
Required: False
80+
Required: True
7181
Position: Named
7282
Default value: None
7383
Accept pipeline input: True (ByPropertyName)
@@ -94,7 +104,7 @@ Virtual network gateway object
94104
95105
```yaml
96106
Type: Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGateway
97-
Parameter Sets: (All)
107+
Parameter Sets: ByVpnGatewayObject
98108
Aliases: VirtualNetworkGateway
99109

100110
Required: False

0 commit comments

Comments
 (0)