Remove-ResourceGroup

1.0

This runbook connects to Azure and removes resource groups with names that have substrings that match the name filter.
All of the resources in each resource group are also removed.
An important option is to run in preview mode to see which resource groups and resources will be removed without actually removing them.
The Azure subscription that is assumed is the subscr
This runbook connects to Azure and removes resource groups with names that have substrings that match the name filter.
All of the resources in each resource group are also removed.
An important option is to run in preview mode to see which resource groups and resources will be removed without actually removing them.
The Azure subscription that is assumed is the subscription that contains the Automation account that is running this runbook.
The runbook will NOT remove the resource group that contains the Automation account that is running this runbook.

REQUIRED AUTOMATION ASSETS
  An Automation connection asset that contains the Azure service principal, by default named AzureRunAsConnection.

Installation Options

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

Install-Script -Name Remove-ResourceGroup

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy 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

Author(s)

Azure Automation Team

Owners

Tags

Azure Automation Resource Group PowerShell Runbook

Dependencies

This script has no dependencies.

Version History

Version Downloads Last updated
1.0 (current version) 190 9/20/2016