Last active
June 25, 2024 03:26
-
-
Save veeravat/8d87c872ae8be3899e905a80048f983f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete all resource group in subscription | |
# Except Locked RG | |
$RG = $(az group list -o tsv --query [].name) | |
ForEach ($value in $RG) {az group delete -g $value -y --no-wait} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment