How to troubleshoot a Windows-based Azure Virtual Machine

When a physical device running Windows has problems, you have all sorts of possibilities to fix it, when virtual machine hosted within your on-premise virtualization infrastructure runs into issues, you still have all options to fix it. But the first time when a virtual machine hosted in Azure gets into trouble you might feel a little bit lost. But there’s hope. When I ran into an issue myself recently I found the following article “Troubleshoot Remote Desktop connections to a Windows-based Azure Virtual Machine

The article mentions the Azure IaaS Remote Diagnostics Package. Here’s how it works.

First go to https://home.diagnostics.support.microsoft.com/SelfHelp/ and then search for “IaaS”, you then should find the IaaS Azure Diagnostics Package.

image

Next Enter a Tracking ID (optional), then select “Create

image

Next select “Download

image

Save the file and then select “Run

image

Select “Run now on this PC

image

Select “Accept

image

Select “Start” and confirm the UAC prompt

image

A folder c:\WindowsAzure is created on the local client.

Select “Next

image

Next sign-in with your Azure Account.

image

Select the Azure Subscription (in case you have multiple)

image

Next Accept to collect diagnostic data from Azure VMs.

image

Select the Azure Storage Account (in case you have multiple)

image

Next select the issue you are experiencing.

image

Next select the VM that experiences an issue.

image

When the test / diagnosis is completed, you have the option to view the log files.

image

Optionally the log files can be saved locally.

image

 

image

In addition to the saved CAB file, the tool also saves an additional file locally. In my case the file name was:

"C:\WindowsAzure\Logs\AzureVMLogCollector_VM06.zip"

The ZIP file contains various information such as Windows Event log data, Windows Setup, Networking and other information that might of use when troubleshooting a virtual machine.

Let’s hope your Azure virtual machines, just run smoothly, but in case, now you know there’s tools around for troubleshooting.

Leave a Reply