Hi @SenhorDolas
Thank you for reaching out to Microsoft Q&A forum!
It sounds like you’re dealing with a common issue where the VM shows as “Shutdown” in the Azure portal despite running correctly. Here are a few steps you can try before considering uninstalling and removing the VM from the pool:
Check the VM’s Power State: Use the Azure VM instance view API to confirm the actual power state of the VM. Sometimes, the portal might not reflect the current state accurately1.
Restart the VM: Try restarting the VM from the Azure portal. This can sometimes resolve discrepancies between the actual state and the reported state.
Update the Azure Virtual Desktop Agent: Ensure that the Azure Virtual Desktop Agent and BootLoader are up to date. Outdated agents can cause status reporting issues2.
Re-register the VM: You can try re-registering the VM with the Azure Virtual Desktop service. This can help in updating the status correctly.
Check for Health Check Failures: Look into the health checks for the session host. If any non-fatal health checks have failed, they might cause the VM to show as “Shutdown” even if it’s running1.
If these steps don’t resolve the issue, then you might consider removing the VM from the pool and re-adding it. However, this should be a last resort after trying the above steps.
Best regards,