From fd34f2e013e93d7b2cd769fa97a83ce8757a191e Mon Sep 17 00:00:00 2001 From: Venkata Chintala <29983008+chintalavr@users.noreply.github.com> Date: Sat, 22 Jun 2024 15:48:14 -0400 Subject: [PATCH] Update ArcServersLogonScript.ps1 --- azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 b/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 index 92db5a78e2..39c351fff3 100644 --- a/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 +++ b/azure_jumpstart_arcbox/artifacts/ArcServersLogonScript.ps1 @@ -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)