mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
Fix az cli warnings (#5803)
This commit is contained in:
committed by
GitHub
parent
e38f75e512
commit
86e4ccb246
@@ -14,7 +14,7 @@ $TempResourceGroupName = "${ResourcesNamePrefix}_${Image}"
|
||||
|
||||
$groupExist = az group exists --name $TempResourceGroupName --subscription $SubscriptionId
|
||||
if ($groupExist -eq "true") {
|
||||
$osDiskName = az group deployment list --resource-group $TempResourceGroupName --query "[].properties.parameters.osDiskName.value" -o tsv
|
||||
$osDiskName = az deployment group list --resource-group $TempResourceGroupName --query "[].properties.parameters.osDiskName.value" -o tsv
|
||||
Write-Host "Found a match, deleting temporary files"
|
||||
az group delete --name $TempResourceGroupName --subscription $SubscriptionId --yes | Out-Null
|
||||
Write-Host "Temporary group was deleted successfully"
|
||||
|
||||
Reference in New Issue
Block a user