Issue: When updating from 1.1805.7.57 (1805 hotfix) you may encounter an issue with Alerts displayed that are not actually true. The alerts, upon further investigation, appear to be false, but they cannot be closed from the portal.
Version Impacted: 1.1807.0.76 (only seems to be present when upgrading from 1.1805.7.57)
Microsoft Response: Being unable to clear the alerts after updating to 1807 is currently a known issue and fixes are under investigation. There is no resolution at this time.

The two alerts I received specifically were the following:

  • Azure Stack update stopped with errors – Critical – Capacity
  • Activation Required – Warning – Azure Bridge
Alerts displayed

Identifying the alerts shown are false

  • Alert – Azure Stack update stopped with errors
    • Verified the update tile showed a completed or successful update
    • Also verified from the PEP that the update completed by the following command: Get-AzureStackUpdateStatus
Update Successful.jpg
  • Alert – Activation Required
    • During the registration step, we received registration successful and Azure Stack activated notifications
    • This is also verified by browsing the marketplace from Azure Stack
marketplace active.jpg

Now that we have verified the alerts shown are false, it’s time to manually clear them!

Manually deleting the active (false) alerts

# Navigate to the downloaded folder and import the **Connect** PowerShell module
cd C:\AzureStack-Tools-master
Set-ExecutionPolicy RemoteSigned
Import-Module .\Connect\AzureStack.Connect.psm1
# For Azure Stack development kit, this value is set to https://management.local.azurestack.external. To get this value for Azure Stack integrated systems, contact your service provider.
$ArmEndpoint = “https://adminmanagement.cloud.contoso.com“
# For Azure Stack development kit, this value is set to https://graph.windows.net/. To get this value for Azure Stack integrated systems, contact your service provider.
$GraphAudience = “https://graph.windows.net“
# Register an AzureRM environment that targets your Azure Stack instance
Add-AzureRMEnvironment `
  -Name “AzureStackAdmin” `
  -ArmEndpoint $ArmEndpoint
# Set the GraphEndpointResourceId value
Set-AzureRmEnvironment `
  -Name “AzureStackAdmin” `
  -GraphAudience $GraphAudience
# Get the Active Directory tenantId that is used to deploy Azure Stack
$TenantID = Get-AzsDirectoryTenantId `
  -AADTenantName “contoso.onmicrosoft.com” `
  -EnvironmentName “AzureStackAdmin”
# Sign in to your environment
Login-AzureRmAccount `
  -EnvironmentName “AzureStackAdmin” `
  -TenantId $TenantID
  • Delete any and all active alerts by using the following powershell script:
Import-Module AzureStack
Write-Host -ForegroundColor Cyan “Getting active alerts”
$alerts = Get-AzsAlert -Filter “(Properties/State eq ‘Active’)”
$alerts | ft AlertId, Title, State, Severity, ImpactedResourceDisplayName, CreatedTimestamp, ClosedTimestamp -AutoSize
Write-Host -ForegroundColor Cyan “Closing all active alerts”
foreach($alert in $alerts) {
    Write-Host (“Closing alert {0} – {1}” -f $alert.AlertId, $alert.Title)
    Close-AzsAlert -Name $alert.AlertId -Verbose -Force
}
  • Verify the alerts are now gone from the Admin Portal
Alerts Gone.jpg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: