The Remove-AzVMDiagnosticsExtension cmdlet removes an Azure Diagnostics extension from a virtual machine.
You must pass the output of this cmdlet to the Update-AzVM cmdlet to implement your changes.
Examples
Example 1: Remove the Diagnostics extension from a virtual machine
This command removes the Diagnostics extension from a virtual machine named ContosoVM22.
The command passes the result to the Update-AzVM cmdlet by using the pipeline operator.
That command updates the virtual machine.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Starts the operation and returns immediately, before the operation is completed. In order to determine if the operation has successfully been completed, use some other mechanism.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.