Keeping track of solution updates is crucial for maintaining the efficiency and reliability of your systems. In this blog post, we’ll explore how to monitor the solution update progress or check a previous solution update run using remote PowerShell or locally on the Cluster nodes.

To show the status of any update run the following

$updates = Get-SolutionUpdate

$updates | Select-Object ResourceId,State

This shows that 2 have been installed and 1 is Ready to be installed.

Checking Previous Solution Updates

To check the previous update, you can use the following PowerShell commands lets us 2503 for this example

$previousupdate = Get-SolutionUpdate -Id redmond/Solution10.2503.0.13
$PreviousUpdateRun = $previousupdate | Get-SolutionUpdateRun | where {$_.state -eq "Succeeded"}
$PreviousUpdateRunID = $PreviousUpdateRun.ResourceId.Split("/")
$PreviousUpdateRunGUID = $PreviousUpdateRunID
Start-MonitoringActionplanInstanceToComplete -actionPlanInstanceID $PreviousUpdateRunGUID

This will show the last update run detail

Monitoring Live Solution Update Progress

If the update is already running via the Azure portal or another method, you can run the following commands via remote PowerShell to see the solution update progress live:

$running = Get-SolutionUpdate | where-object {$_.state -eq 'Installing'}
$run = Get-SolutionUpdateRun -UpdateId $running.ResourceId
$splitdata = $run.ResourceId.Split("/")
$currentupdaterunID = $splitdata
Start-MonitoringActionplanInstanceToComplete -actionPlanInstanceID $currentupdaterunID

These commands will help you monitor the ongoing update process .

Important update.

During the solution update the following may occur if you leave this monitoring open

Start-MonitoringActionplanInstanceToComplete loads the ECE service client certificate and then polls ECE service for an action plan. Once secret rotation happens the certificate is now invalid which then causes ECE service to crash.

to fix this issue follow the steps outlined below

https://github.com/Azure/AzureLocal-Supportability/blob/main/TSG/Update/Update-Hangs-after-Secret-Rotation.md

Summary

By using remote PowerShell, you can efficiently monitor both previous and ongoing solution updates. This ensures that you are always aware of the update status and can take necessary actions promptly.


Feel free to let me know if you need any further adjustments or additional information! 😊

Categories:

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *