Last active
March 15, 2019 09:25
-
-
Save nnasaki/ed6ddc9b55b881da6fa512926a34e50b to your computer and use it in GitHub Desktop.
Azure CLIでリソースグループを一括削除。一応確認付。
This file contains hidden or 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
| #!/bin/sh | |
| for i in $(az group list | jq -r '.[].name'); | |
| do | |
| echo resource group $i include resouces below | |
| az resource list -g $i | jq | |
| echo will delete $i | |
| az group delete --name $i --no-wait | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
確認不要の場合は
-yつけてあげて、az group delete --name $i --no-wait -yhttps://docs.microsoft.com/en-us/cli/azure/group#delete