Skip to content

Commit 3cc67a7

Browse files
Merge branch 'vnext' of https://github.com/Azure/AzureStack-Tools into vnextlocal
2 parents 9588eaa + 406b917 commit 3cc67a7

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

Registration/RegisterWithAzure.ps1

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,22 @@ $regResponse = Get-Content -path $activationDataFile
182182
$bytes = [System.Text.Encoding]::UTF8.GetBytes($regResponse)
183183
$activationCode = [Convert]::ToBase64String($bytes)
184184

185-
.\Activate-Bridge.ps1 -activationCode $activationCode -AzureResourceManagerEndpoint $azureResourceManagerEndpoint -Verbose
185+
try
186+
{
187+
.\Activate-Bridge.ps1 -activationCode $activationCode -AzureResourceManagerEndpoint $azureResourceManagerEndpoint -Verbose
188+
}
189+
catch
190+
{
191+
$exceptionMessage = $_.Exception.Message
192+
193+
if($exceptionMessage.Contains("Application is currently being upgraded"))
194+
{
195+
Write-Warning "Activate-Bridge: Known issue with redundant service fabric upgrade call"
196+
}
197+
else
198+
{
199+
Write-Error -Message "Activate-Bridge: Error : $($_.Exception)"
200+
}
201+
}
202+
186203
Write-Verbose "Azure Stack activation completed"

0 commit comments

Comments
 (0)