Skip to content

Commit f14d852

Browse files
committed
let AZD handle single group tear down
1 parent 128588f commit f14d852

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testscripts/cleanup.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,12 @@ foreach ($resourceGroupName in $resourceGroups) {
378378
Remove-DiagnosticSettingsForResourceGroup -ResourceGroupName $resourceGroupName
379379
}
380380

381+
if ($azdConfig['AZURE_ENV_NAME'] -eq "dev") {
382+
# when performing dev cleanup there are no dependencies between resource groups
383+
# exitig at this point allows AZD to handle the tear down responsibilities
384+
"`nCleanup complete." | Write-Output
385+
}
386+
381387
# if $SkipResourceGroupDeletion is false, then we skip the resource group deletion
382388
# flag is expected to be set to false when combined with the `azd down` command
383389
if (-not $SkipResourceGroupDeletion) {

0 commit comments

Comments
 (0)