< Back

Remove-AzureRmVMDiagnosticsExtension

Tue Jan 29, 2019 9:39 pm

NAME Remove-AzureRmVMDiagnosticsExtension



SYNOPSIS

Removes the Diagnostics extension from a virtual machine.





SYNTAX

Remove-AzureRmVMDiagnosticsExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [-DefaultProfile

<IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Remove-AzureRmVMDiagnosticsExtension cmdlet removes an Azure Diagnostics extension from a virtual machine. You must pass the output of this

cmdlet to the Update-AzureRmVM cmdlet to implement your changes.





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 that this cmdlet removes.



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



-VMName <String>

Specifies the name of the virtual machine from which this cmdlet removes a 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.PSAzureOperationResponse







NOTES









Example 1: Remove the Diagnostics extension from a virtual machine



PS C:\\> Remove-AzureRmVMDiagnosticsExtension -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM22" | Update-AzureRmVM



This command removes the Diagnostics extension from a virtual machine named ContosoVM22. The command passes the result to the Update-AzureRmVM

cmdlet by using the pipeline operator. That command updates the virtual machine.







RELATED LINKS

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

Get-AzureRmVMDiagnosticsExtension

Set-AzureRmVMDiagnosticsExtension

Update-AzureRmVmss