@@ -11,11 +11,21 @@ schema: 2.0.0
11
11
Disconnect given connected vpn client connections with a given virtual network gateway.
12
12
13
13
## SYNTAX
14
-
14
+ ### ByVpnGatewayName (Default)
15
15
```
16
16
Disconnect-AzVirtualNetworkGatewayVpnConnection -ResourceName <String> -ResourceGroupName <String> -InputObject <PSVirtualNetworkGateway> -ResourceId <ResourceId> -VpnConnectionId <VpnConnectionIds> [-AsJob] [<CommonParameters>]
17
17
```
18
18
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
+
19
29
## DESCRIPTION
20
30
The ** Disconnect-AzVirtualNetworkGatewayVpnConnection** cmdlet enables you to disconnect given connected vpn client connection.
21
31
@@ -34,7 +44,7 @@ Virtual network gateway resource group's name
34
44
35
45
``` yaml
36
46
Type : System.String
37
- Parameter Sets : (All)
47
+ Parameter Sets : ByVpnGatewayName
38
48
Aliases :
39
49
40
50
Required : True
@@ -49,7 +59,7 @@ Virtual network gateway name
49
59
50
60
` ` ` yaml
51
61
Type : System.String
52
- Parameter Sets : (All)
62
+ Parameter Sets : ByVpnGatewayName
53
63
Aliases : VirtualNetworkGatewayName
54
64
55
65
Required : True
@@ -64,10 +74,10 @@ Virtual network gateway resource Id
64
74
65
75
` ` ` yaml
66
76
Type : System.String
67
- Parameter Sets : (All)
77
+ Parameter Sets : ByVpnGatewayResourceId
68
78
Aliases : ResourceId
69
79
70
- Required : False
80
+ Required : True
71
81
Position : Named
72
82
Default value : None
73
83
Accept pipeline input : True (ByPropertyName)
@@ -94,7 +104,7 @@ Virtual network gateway object
94
104
95
105
` ` ` yaml
96
106
Type : Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGateway
97
- Parameter Sets : (All)
107
+ Parameter Sets : ByVpnGatewayObject
98
108
Aliases : VirtualNetworkGateway
99
109
100
110
Required : False
0 commit comments