Remove-VMExtension

1.0

This script removes Log Analytics and Dependency Agent VM extensions from VM's and VM Scale Sets

Specify what to apply to with following parameters:
-LogAnalyticsAgent and/or -DependencyAgent and/or -TriggerVmssManualVMUpdate

Can be applied to:
- Subscription
- Resource Group in a Subscription
- Specific VM/VM Scale Set
- Compliance results of a policy for a VM or V
This script removes Log Analytics and Dependency Agent VM extensions from VM's and VM Scale Sets

Specify what to apply to with following parameters:
-LogAnalyticsAgent and/or -DependencyAgent and/or -TriggerVmssManualVMUpdate

Can be applied to:
- Subscription
- Resource Group in a Subscription
- Specific VM/VM Scale Set
- Compliance results of a policy for a VM or VM Extension

Script will show you list of VM's/VM Scale Sets that will apply to and let you confirm to continue.
Use -Approve switch to run without prompting, if all required parameters are provided.

Use -WhatIf if you would like to see what would happen in terms of installs, what workspace configured to, and status of the extension.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Remove-VMExtension -RequiredVersion 1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • dougbrad@microsoft.com

Functions

Get-VMExtension Remove-VMExtension Get-VMssExtension Remove-VMssExtension

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.1 127 10/29/2018
1.0 (current version) 18 10/16/2018