Get-​Azure​Rm​VM​Boot​Diagnostics​Data

Gets boot diagnostics data for a virtual machine.

Syntax

Get-AzureRmVMBootDiagnosticsData
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-Linux]
   [[-LocalPath] <String>]
   [<CommonParameters>]
Get-AzureRmVMBootDiagnosticsData
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-Windows]
   [-LocalPath] <String>
   [<CommonParameters>]

Description

The Get-AzureRmVMBootDiagnosticsData cmdlet gets boot diagnostics data for a virtual machine.

Examples

Example 1: Get boot diagnostics data

PS C:\>Get-AzureRmVMBootDiagnosticsData -ResourceGroupName "ResourceGroup11" -Name "ContosoVM07" -Windows -LocalPath "C:\Contoso\BootDiagnostics"

This command gets boot diagnostics data for the virtual machine named ContosoVM07. This virtual machine runs the Windows operating system. The command stores the data in specified local path.

Required Parameters

-Linux

Indicates that the virtual machine runs the Linux operating system.

Type:SwitchParameter
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LocalPath

Specifies the local path for the boot diagnostics data.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the virtual machine for which this cmdlet gets diagnostics data.

Type:String
Aliases:ResourceName, VMName
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group of the virtual machine.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Windows

Indicates that the virtual machine runs the Windows operating system.

Type:SwitchParameter
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False