mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 11:07:02 +00:00
13 lines
402 B
PowerShell
13 lines
402 B
PowerShell
param(
|
|
[Parameter (Mandatory=$true)] [string] $TempResourceGroupName
|
|
)
|
|
|
|
$groupExist = az group exists --name $TempResourceGroupName
|
|
if ($groupExist -eq "true") {
|
|
Write-Host "Found a match, deleting temporary files"
|
|
az group delete --name $TempResourceGroupName --yes | Out-Null
|
|
Write-Host "Temporary group was deleted successfully"
|
|
} else {
|
|
Write-Host "No temporary groups found"
|
|
}
|