@@ -23,8 +23,9 @@ New-AzVirtualNetworkGatewayConnection -Name <String> -ResourceGroupName <String>
2323 [-Force] [-UsePolicyBasedTrafficSelectors <Boolean>] [-IpsecPolicies <PSIpsecPolicy[]>]
2424 [-TrafficSelectorPolicy <PSTrafficSelectorPolicy[]>] [-ConnectionProtocol <String>]
2525 [-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>]
2829 [-WhatIf] [-Confirm] [<CommonParameters>]
2930```
3031
@@ -38,8 +39,9 @@ New-AzVirtualNetworkGatewayConnection -Name <String> -ResourceGroupName <String>
3839 [-Force] [-UsePolicyBasedTrafficSelectors <Boolean>] [-IpsecPolicies <PSIpsecPolicy[]>]
3940 [-TrafficSelectorPolicy <PSTrafficSelectorPolicy[]>] [-ConnectionProtocol <String>]
4041 [-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>]
4345 [-WhatIf] [-Confirm] [<CommonParameters>]
4446```
4547
@@ -69,7 +71,21 @@ The first command gets a virtual network gateway natRule named natRule1 that's t
6971The second command gets a virtual network gateway natRule named natRule2 that's type is EgressSnat.
7072The third command creates this new virtual Network gateway connection with Ingress and Egress NatRules.
7173
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
7389``` powershell
7490$LocalnetGateway = Get-AzLocalNetworkGateway -ResourceGroupName "PS_testing" -name "testLng"
7591$gateway = Get-AzVirtualNetworkGateway -ResourceGroupName PS_testing -ResourceName testGw
@@ -99,6 +115,22 @@ Accept pipeline input: False
99115Accept wildcard characters : False
100116` ` `
101117
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+
102134### -AuthorizationKey
103135AuthorizationKey.
104136
@@ -114,6 +146,21 @@ Accept pipeline input: True (ByPropertyName)
114146Accept wildcard characters : False
115147` ` `
116148
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+
117164### -ConnectionMode
118165Virtual Network Gateway Connection Mode.
119166
@@ -387,6 +434,21 @@ Accept pipeline input: True (ByPropertyName)
387434Accept wildcard characters : False
388435` ` `
389436
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+
390452### -ResourceGroupName
391453The resource group name.
392454
0 commit comments