< Back
Get-AzureRmVMDiagnosticsExtension
Post
NAME Get-AzureRmVMDiagnosticsExtension
SYNOPSIS
Gets the settings of the Diagnostics extension on a virtual machine.
SYNTAX
Get-AzureRmVMDiagnosticsExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [[-Status]] [-DefaultProfile
<IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmVMDiagnosticsExtension cmdlet gets the settings of the Azure Diagnostics extension on 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
-Name <String>
Specifies the name of the Diagnostics extension for which this cmdlet gets settings.
Required? false
Position? 2
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
-Status [<SwitchParameter>]
Indicates that this cmdlet uses the Status value.
Required? false
Position? 3
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VMName <String>
Specifies the name of the virtual machine from which this cmdlet gets the Diagnostics extension.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
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.PSVirtualMachineExtension
NOTES
Example 1: Get the diagnostics extension applied to a virtual machine
PS C:\\> Get-AzureRmVMDiagnosticsExtension -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM22"
This command gets the diagnostics extension applied to the virtual machine named ContosoVM22.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... sextension
Remove-AzureRmVMDiagnosticsExtension
Set-AzureRmVMDiagnosticsExtension
SYNOPSIS
Gets the settings of the Diagnostics extension on a virtual machine.
SYNTAX
Get-AzureRmVMDiagnosticsExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [[-Status]] [-DefaultProfile
<IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmVMDiagnosticsExtension cmdlet gets the settings of the Azure Diagnostics extension on 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
-Name <String>
Specifies the name of the Diagnostics extension for which this cmdlet gets settings.
Required? false
Position? 2
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
-Status [<SwitchParameter>]
Indicates that this cmdlet uses the Status value.
Required? false
Position? 3
Default value False
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-VMName <String>
Specifies the name of the virtual machine from which this cmdlet gets the Diagnostics extension.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
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.PSVirtualMachineExtension
NOTES
Example 1: Get the diagnostics extension applied to a virtual machine
PS C:\\> Get-AzureRmVMDiagnosticsExtension -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM22"
This command gets the diagnostics extension applied to the virtual machine named ContosoVM22.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... sextension
Remove-AzureRmVMDiagnosticsExtension
Set-AzureRmVMDiagnosticsExtension