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 by PG. There is no resolution at this time. Once we have an action plan or patch available we will reach out and can reassign to work with the customer in their time zone.
The two alerts I received specifically were the following:
- Azure Stack update stopped with errors – Critical – Capacity
- Activation Required – Warning – Azure Bridge
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
- 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
Now that we have verified the alerts shown are false, it’s time to manually clear them!
Manually deleting the active (false) alerts
- Download and install Azure Stack tools from GitHub: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-download
- Use the Connect module to connect to Azure with the Admin Management ARM template and AAD Tenant Name via powershell
# Navigate to the downloaded folder and import the **Connect** PowerShell modulecd C:\AzureStack-Tools-masterSet-ExecutionPolicy RemoteSignedImport-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 instanceAdd-AzureRMEnvironment `-Name “AzureStackAdmin” `-ArmEndpoint $ArmEndpoint# Set the GraphEndpointResourceId valueSet-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 environmentLogin-AzureRmAccount `-EnvironmentName “AzureStackAdmin” `-TenantId $TenantID
- Delete any and all active alerts by using the following powershell script:
Import-Module AzureStackWrite-Host -ForegroundColor Cyan “Getting active alerts”$alerts = Get-AzsAlert -Filter “(Properties/State eq ‘Active’)”$alerts | ft AlertId, Title, State, Severity, ImpactedResourceDisplayName, CreatedTimestamp, ClosedTimestamp -AutoSizeWrite-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