File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -426,8 +426,8 @@ If($RouterAutomationMode)
426
426
Write-Host " show vpn ipsec sa" - ForegroundColor Yellow - NoNewline
427
427
Write-Host " ]" - ForegroundColor Gray
428
428
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' ){
431
431
Write-Host (" Done configuring router basic site-2-site vpn" ) - ForegroundColor Green
432
432
Write-Host " ==============================================" - ForegroundColor Green
433
433
}
@@ -466,8 +466,8 @@ public class TrustAllCertsPolicy : ICertificatePolicy {
466
466
}
467
467
Else {
468
468
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' ){
471
471
Set-AzVirtualNetworkGatewayConnectionSharedKey - Name $AzureSimpleConfig.ConnectionName `
472
472
- ResourceGroupName $AzureSimpleConfig.ResourceGroupName - Value $Global :BasicPssKey - Force | Out-Null
473
473
Original file line number Diff line number Diff line change @@ -481,8 +481,8 @@ If($RouterAutomationMode)
481
481
Write-Host " show vpn ipsec sa" - ForegroundColor Yellow - NoNewline
482
482
Write-Host " ]" - ForegroundColor Gray
483
483
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' ){
486
486
Write-Host (" Done configuring router advanced site-2-site vpn for region 2" ) - ForegroundColor Green
487
487
Write-Host " ==============================================================" - ForegroundColor Green
488
488
}Else {
@@ -521,8 +521,8 @@ public class TrustAllCertsPolicy : ICertificatePolicy {
521
521
}
522
522
Else {
523
523
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' ){
526
526
Set-AzVirtualNetworkGatewayConnectionSharedKey - Name $AzureAdvConfigSiteB.ConnectionName `
527
527
- ResourceGroupName $AzureAdvConfigSiteB.ResourceGroupName - Value $Global :RegionBPssKey - Force | Out-Null
528
528
You can’t perform that action at this time.
0 commit comments