Skip to content

Commit c8eda0d

Browse files
updated responses
1 parent ef4e716 commit c8eda0d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Step 3A. Build Azure Basic S2S.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ If($RouterAutomationMode)
426426
Write-Host "show vpn ipsec sa" -ForegroundColor Yellow -NoNewline
427427
Write-Host "]" -ForegroundColor Gray
428428
Write-Host "---------------------------------------------"
429-
$response1 = Read-host "Is the VPN tunnel up? [Y or N]"
430-
If($response1 -eq 'Y'){
429+
$IsVpnUp = Read-host "Is the VPN tunnel up? [Y or N]"
430+
If($IsVpnUp -eq 'Y'){
431431
Write-Host ("Done configuring router basic site-2-site vpn") -ForegroundColor Green
432432
Write-Host "==============================================" -ForegroundColor Green
433433
}
@@ -466,8 +466,8 @@ public class TrustAllCertsPolicy : ICertificatePolicy {
466466
}
467467
Else{
468468
Write-Host ("{0}" -f $currentGwConnection.ConnectionStatus) -ForegroundColor Red
469-
$response2 = Read-host "Would you like to attempt to reset the VPN connection? [Y or N]"
470-
If($response2 -eq 'Y'){
469+
$ResetVpn = Read-host "Would you like to attempt to reset the VPN connection? [Y or N]"
470+
If($ResetVpn -eq 'Y'){
471471
Set-AzVirtualNetworkGatewayConnectionSharedKey -Name $AzureSimpleConfig.ConnectionName `
472472
-ResourceGroupName $AzureSimpleConfig.ResourceGroupName -Value $Global:BasicPssKey -Force | Out-Null
473473

Step 3B-2. Build Azure Advanced S2S - Region 2.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ If($RouterAutomationMode)
481481
Write-Host "show vpn ipsec sa" -ForegroundColor Yellow -NoNewline
482482
Write-Host "]" -ForegroundColor Gray
483483
Write-Host "---------------------------------------------"
484-
$response1 = Read-host "Is the VPN tunnel up? [Y or N]"
485-
If($response1 -eq 'Y'){
484+
$IsVpnUp = Read-host "Is the VPN tunnel up? [Y or N]"
485+
If($IsVpnUp -eq 'Y'){
486486
Write-Host ("Done configuring router advanced site-2-site vpn for region 2") -ForegroundColor Green
487487
Write-Host "==============================================================" -ForegroundColor Green
488488
}Else{
@@ -521,8 +521,8 @@ public class TrustAllCertsPolicy : ICertificatePolicy {
521521
}
522522
Else{
523523
Write-Host ("{0}" -f $currentGwConnection.ConnectionStatus) -ForegroundColor Red
524-
$response2 = Read-host "Would you like to attempt to reset the VPN connection? [Y or N]"
525-
If($response2 -eq 'Y'){
524+
$ResetVpn = Read-host "Would you like to attempt to reset the VPN connection? [Y or N]"
525+
If($ResetVpn -eq 'Y'){
526526
Set-AzVirtualNetworkGatewayConnectionSharedKey -Name $AzureAdvConfigSiteB.ConnectionName `
527527
-ResourceGroupName $AzureAdvConfigSiteB.ResourceGroupName -Value $Global:RegionBPssKey -Force | Out-Null
528528

0 commit comments

Comments
 (0)