@@ -23,8 +23,9 @@ New-AzVirtualNetworkGatewayConnection -Name <String> -ResourceGroupName <String>
23
23
[-Force] [-UsePolicyBasedTrafficSelectors <Boolean>] [-IpsecPolicies <PSIpsecPolicy[]>]
24
24
[-TrafficSelectorPolicy <PSTrafficSelectorPolicy[]>] [-ConnectionProtocol <String>]
25
25
[-IngressNatRule <PSResourceId[]>] [-EgressNatRule <PSResourceId[]>]
26
- [-GatewayCustomBgpIpAddress <PSGatewayCustomBgpIpConfiguration[]>] [-AsJob] [-ExpressRouteGatewayBypass]
27
- [-EnablePrivateLinkFastPath] [-DefaultProfile <IAzureContextContainer>]
26
+ [-GatewayCustomBgpIpAddress <PSGatewayCustomBgpIpConfiguration[]>] [-AuthenticationType <String>]
27
+ [-CertificateAuthentication <PSCertificateAuthentication>] [-AsJob] [-ExpressRouteGatewayBypass]
28
+ [-EnablePrivateLinkFastPath] [-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>]
28
29
[-WhatIf] [-Confirm] [<CommonParameters>]
29
30
```
30
31
@@ -38,8 +39,9 @@ New-AzVirtualNetworkGatewayConnection -Name <String> -ResourceGroupName <String>
38
39
[-Force] [-UsePolicyBasedTrafficSelectors <Boolean>] [-IpsecPolicies <PSIpsecPolicy[]>]
39
40
[-TrafficSelectorPolicy <PSTrafficSelectorPolicy[]>] [-ConnectionProtocol <String>]
40
41
[-IngressNatRule <PSResourceId[]>] [-EgressNatRule <PSResourceId[]>]
41
- [-GatewayCustomBgpIpAddress <PSGatewayCustomBgpIpConfiguration[]>] [-AsJob] [-ExpressRouteGatewayBypass]
42
- [-EnablePrivateLinkFastPath] [-DefaultProfile <IAzureContextContainer>]
42
+ [-GatewayCustomBgpIpAddress <PSGatewayCustomBgpIpConfiguration[]>] [-AuthenticationType <String>]
43
+ [-CertificateAuthentication <PSCertificateAuthentication>] [-AsJob] [-ExpressRouteGatewayBypass]
44
+ [-EnablePrivateLinkFastPath] [-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>]
43
45
[-WhatIf] [-Confirm] [<CommonParameters>]
44
46
```
45
47
@@ -69,7 +71,21 @@ The first command gets a virtual network gateway natRule named natRule1 that's t
69
71
The second command gets a virtual network gateway natRule named natRule2 that's type is EgressSnat.
70
72
The third command creates this new virtual Network gateway connection with Ingress and Egress NatRules.
71
73
72
- ### Example 3 Add GatewayCustomBgpIpAddress to virtual network gateway connection
74
+ ### Example 3 Create VPN connection with certificate authentication
75
+ ``` powershell
76
+ $vnetgw1 = Get-AzVirtualNetworkGateway -ResourceGroupName "Rg1" -Name "gw1"
77
+ $localnetgw = Get-AzLocalNetworkGateway -ResourceGroupName "Rg1" -name "localgw1"
78
+ $certAuth = New-AzVirtualNetworkGatewayCertificateAuthentication -OutboundAuthCertificate "MIICmjCCAYIGCSqGSIb3DQEJEjEOMAwGCisGAQQBgjcCAQwwHAYJKoZIhvcNAQkFMQ8XDTEzMDEwMzEyNTk1OVowLwYJKoZIhvcNAQkEMSIEII8Xqf/JHKJzaOPoCdQf2c7jZwYmK1hc8LTfBrMJuXzi"
79
+
80
+ New-AzVirtualNetworkGatewayConnection -Name conn-cert-1 -ResourceGroupName "Rg1" -Location "eastus" -VirtualNetworkGateway1 $vnetgw1 -LocalNetworkGateway2 $localnetgw -ConnectionType IPsec -AuthenticationType Certificate -CertificateAuthentication $certAuth
81
+ ```
82
+
83
+ The first command gets a virtual network gateway.
84
+ The second command gets a local network gateway.
85
+ The third command creates a certificate authentication object.
86
+ The fourth command creates a new VPN connection using certificate authentication.
87
+
88
+ ### Example 4 Add GatewayCustomBgpIpAddress to virtual network gateway connection
73
89
``` powershell
74
90
$LocalnetGateway = Get-AzLocalNetworkGateway -ResourceGroupName "PS_testing" -name "testLng"
75
91
$gateway = Get-AzVirtualNetworkGateway -ResourceGroupName PS_testing -ResourceName testGw
@@ -99,6 +115,22 @@ Accept pipeline input: False
99
115
Accept wildcard characters : False
100
116
` ` `
101
117
118
+ ### -AuthenticationType
119
+ Gateway connection authentication type.
120
+
121
+ ` ` ` yaml
122
+ Type : System.String
123
+ Parameter Sets : (All)
124
+ Aliases :
125
+ Accepted values : PSK, Certificate
126
+
127
+ Required : False
128
+ Position : Named
129
+ Default value : None
130
+ Accept pipeline input : True (ByPropertyName)
131
+ Accept wildcard characters : False
132
+ ` ` `
133
+
102
134
### -AuthorizationKey
103
135
AuthorizationKey.
104
136
@@ -114,6 +146,21 @@ Accept pipeline input: True (ByPropertyName)
114
146
Accept wildcard characters : False
115
147
` ` `
116
148
149
+ ### -CertificateAuthentication
150
+ Certificate Authentication information for certificate based authentication connection.
151
+
152
+ ` ` ` yaml
153
+ Type : Microsoft.Azure.Commands.Network.Models.PSCertificateAuthentication
154
+ Parameter Sets : (All)
155
+ Aliases :
156
+
157
+ Required : False
158
+ Position : Named
159
+ Default value : None
160
+ Accept pipeline input : True (ByPropertyName)
161
+ Accept wildcard characters : False
162
+ ` ` `
163
+
117
164
### -ConnectionMode
118
165
Virtual Network Gateway Connection Mode.
119
166
@@ -387,6 +434,21 @@ Accept pipeline input: True (ByPropertyName)
387
434
Accept wildcard characters : False
388
435
` ` `
389
436
437
+ ### -ProgressAction
438
+ {{ Fill ProgressAction Description }}
439
+
440
+ ` ` ` yaml
441
+ Type : System.Management.Automation.ActionPreference
442
+ Parameter Sets : (All)
443
+ Aliases : proga
444
+
445
+ Required : False
446
+ Position : Named
447
+ Default value : None
448
+ Accept pipeline input : False
449
+ Accept wildcard characters : False
450
+ ` ` `
451
+
390
452
### -ResourceGroupName
391
453
The resource group name.
392
454
0 commit comments