You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AzureBasicLoadBalancerUpgrade/module/AzureBasicLoadBalancerUpgrade/modules/Start-AzBasicLoadBalancerUpgrade/Start-AzBasicLoadBalancerUpgrade.psm1
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,7 @@ function Start-AzBasicLoadBalancerUpgrade {
@@ -194,6 +195,20 @@ function Start-AzBasicLoadBalancerUpgrade {
194
195
Write-Error"The path '$recoveryBackupPath' specified with parameter recoveryBackupPath must exist and be a valid directory."-terminateOnError
195
196
}
196
197
198
+
# warn user about application downtime
199
+
If ((($confirm) -and!$force) -and!(Test-Path-Path (Join-Path-Path $RecoveryBackupPath-ChildPath 'Start-AzBasicLoadBalancerUpgrade.log'))) {
200
+
$message="This operation will cause downtime for the application(s) using the Basic Load Balancer--usually a few minutes--see https://aka.ms/BasicLBMigrateDowntime. Are you sure you want to continue? [y/N]"
201
+
$result=Read-Host-Prompt $message
202
+
If ($result-ne'y'-and$result-ne'yes') {
203
+
Write-Host"Operation cancelled by user"
204
+
return
205
+
}
206
+
Else {
207
+
Write-Host-ForegroundColor Green "`nSpecify parameter ``-confirm `$false`` to skip this prompt in the future`n"
0 commit comments