Created
December 24, 2020 11:09
-
-
Save ovitente/caa215a5863209fbb252e75cd99fd7fa to your computer and use it in GitHub Desktop.
azure cloud resources cleanup
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
param($Timer) | |
$toll = Get-AzResourceGRoup | Where-Object ResourceGroupName -like 'sandbox*' | |
Write-Host "$toll.ResourceGroupName" | |
foreach ($item in $toll) { | |
Write-Host "Bye ($item.ResourceGroupName)" | |
Remove-AzResourceGroup -Name $item.ResourceGroupName -Force | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment