May 31st, 2016

PowerTip: Get Azure Virtual Machine Diagnostics by using PowerShell

Doctor Scripto
Scripter

Summary: Use the Azure Resource Manager cmdlets to retrieve diagnostic data within Azure Resource Manager virtual machines.

Hey, Scripting Guy! Question Our QA department was asking a very specific question that I didn’t know how to answer. Is there anything in an Azure virtual machine (VM) to show the quality of the boot and its startup?

Hey, Scripting Guy! Answer Maybe this will help. You can access the boot diagnostics data with a single cmdlet. To retrieve the data for a single machine, use the Get-AzureRmVMBootDiagnosticsData cmdlet and add a parameter to target whether the machine is a Windows VM or Linux VM. Here is an example:

Get-AzureRmVMBootDiagnosticsData -ResourceGroupName HSG-AzureRG -Name HSG-Linux1 -Linux

The Doctor

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.