Skip to content

Commit ca70830

Browse files
authored
Merge pull request #111031 from wmgries/fix-files-vpn-ps
Files P2S VPN PS fixes.
2 parents 9b92221 + 4b25b13 commit ca70830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/storage/files/storage-files-configure-p2s-vpn-windows.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ $vpnName = "<desired-vpn-name-here>"
133133
$publicIpAddressName = "$vpnName-PublicIP"
134134
135135
$publicIPAddress = New-AzPublicIpAddress `
136-
-ResourceGroupName $resourceGroupName `
136+
-ResourceGroupName $resourceGroupName `
137137
-Name $publicIpAddressName `
138138
-Location $region `
139139
-Sku Basic `
@@ -237,7 +237,7 @@ foreach ($session in $sessions) {
237237
-ArgumentList `
238238
$mypwd, `
239239
$vpnTemp, `
240-
$virtualNetworkName
240+
$virtualNetworkName `
241241
-ScriptBlock {
242242
$mypwd = $args[0]
243243
$vpnTemp = $args[1]
@@ -262,7 +262,7 @@ foreach ($session in $sessions) {
262262
263263
Add-VpnConnection `
264264
-Name $virtualNetworkName `
265-
-ServerAddress $vpnProfile.VpnServer `
265+
-ServerAddress $vpnProfile.VpnServer `
266266
-TunnelType Ikev2 `
267267
-EncryptionLevel Required `
268268
-AuthenticationMethod MachineCertificate `
@@ -327,7 +327,7 @@ Invoke-Command `
327327
-Credential $credential `
328328
-Persist | Out-Null
329329
Get-ChildItem -Path Z:\
330-
Remove-PSDrive -Name Z
330+
Remove-PSDrive -Name Z
331331
}
332332
```
333333

0 commit comments

Comments
 (0)