It sounds like you’re experiencing a challenging issue with the Azure Serial Console. Here are some steps you can try to resolve it:
- Ensure that boot diagnostics are enabled for your VM. This is crucial for the serial console to function properly.
- Make sure your VM is in a running state and not stopped or deallocated.
- If you receive a “Web socket is closed or could not be opened” error, add *.serialconsole.azure.com to your firewall allow list. Details can be found here.
- Verify that you have the necessary permissions (at least Virtual Machine Contributor role) to access the serial console.
- Ensure that the storage account used for boot diagnostics has not been deleted and is accessible.
For more details, please refer below documents:
Common errors within the Azure Serial Console
Azure Serial Console for Windows
How can I fix this Serial Console Problem?
If you have any further queries, do let us know. If the comment is helpful, please click "Upvote".