Skip to content

Instantly share code, notes, and snippets.

@IAmStoxe
Created September 7, 2021 04:55
Show Gist options
  • Save IAmStoxe/7a398f8e8e4adcc62d95bc1e98daa249 to your computer and use it in GitHub Desktop.
Save IAmStoxe/7a398f8e8e4adcc62d95bc1e98daa249 to your computer and use it in GitHub Desktop.
Delete Azure resource groups asynchronously in bulk
az group list | convertfrom-json | select -expand name | ?{$_ -like "*-rg-*"}| %{az group delete --name=$_ -y & }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment