< Back

Get-AzureRmVMBootDiagnosticsData

Tue Jan 29, 2019 9:37 pm

NAME Get-AzureRmVMBootDiagnosticsData



SYNOPSIS

Gets boot diagnostics data for a virtual machine.





SYNTAX

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

<IAzureContextContainer>] [<CommonParameters>]



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

<IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Linux [<SwitchParameter>]

Indicates that the virtual machine runs the Linux operating system.



Required? true

Position? 2

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-LocalPath <String>

Specifies the local path for the boot diagnostics data.



Required? true

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

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



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

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



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Windows [<SwitchParameter>]

Indicates that the virtual machine runs the Windows operating system.



Required? true

Position? 2

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine





Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineInstanceView







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... osticsdata

Set-AzureRmVMBootDiagnostics