File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ $vpnName = "<desired-vpn-name-here>"
133
133
$publicIpAddressName = "$vpnName-PublicIP"
134
134
135
135
$publicIPAddress = New-AzPublicIpAddress `
136
- -ResourceGroupName $resourceGroupName `
136
+ -ResourceGroupName $resourceGroupName `
137
137
-Name $publicIpAddressName `
138
138
-Location $region `
139
139
-Sku Basic `
@@ -237,7 +237,7 @@ foreach ($session in $sessions) {
237
237
-ArgumentList `
238
238
$mypwd, `
239
239
$vpnTemp, `
240
- $virtualNetworkName
240
+ $virtualNetworkName `
241
241
-ScriptBlock {
242
242
$mypwd = $args[0]
243
243
$vpnTemp = $args[1]
@@ -262,7 +262,7 @@ foreach ($session in $sessions) {
262
262
263
263
Add-VpnConnection `
264
264
-Name $virtualNetworkName `
265
- -ServerAddress $vpnProfile.VpnServer `
265
+ -ServerAddress $vpnProfile.VpnServer `
266
266
-TunnelType Ikev2 `
267
267
-EncryptionLevel Required `
268
268
-AuthenticationMethod MachineCertificate `
@@ -327,7 +327,7 @@ Invoke-Command `
327
327
-Credential $credential `
328
328
-Persist | Out-Null
329
329
Get-ChildItem -Path Z:\
330
- Remove-PSDrive -Name Z
330
+ Remove-PSDrive -Name Z
331
331
}
332
332
```
333
333
You can’t perform that action at this time.
0 commit comments