Skip to content

Commit

Permalink
Update ArcServersLogonScript.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
chintalavr committed Jun 22, 2024
1 parent 4871e68 commit fd34f2e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,14 @@ if ($Env:flavor -ne "DevOps") {
}
else {
$retryCount = $retryCount + 1
Write-Host "Waiting for Azure Monitoring Agent extension installation to complete ... Retry count: $retryCount"
Start-Sleep(60)

if ($retryCount -gt 10) {
Write-Host "WARNING: Azure Monitor Agent extenstion is taking longger than expected. Enable SQL BPA later through Azure portal."
Exit
}
else {
Write-Host "Waiting for Azure Monitoring Agent extension installation to complete ... Retry count: $retryCount"
Start-Sleep(60)
}
}
} while ($retryCount -le 10)

Expand Down

0 comments on commit fd34f2e

Please sign in to comment.