Remove-ResourceGroupByTag

1.0.0

This runbook connects to Azure and removes resource groups with matching name and tag.
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 Automat
This runbook connects to Azure and removes resource groups with matching name and tag.
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.

Show more

Installation Options

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

Install-Script -Name Remove-ResourceGroupByTag

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

Copyright

(c) 2020 Rob Goodridge. All rights reserved.

Package Details

Author(s)

  • Rob Goodridge

Tags

Azure Automation Resource Group PowerShell Runbook DevOps Tag

Workflows

Remove-ResourceGroupByTag

Dependencies

Release Notes

1.0.1: - Add initial version

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 67 9/2/2020