microsoft / microsoft/aspire

aspire destroy: Add --no-wait flag for async Azure resource group deletion

Open
#16,112 0 comments 0 reactions 0 assignees View on GitHub
area-deployment
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

## Summary

`aspire destroy` now waits for Azure resource group deletion to complete by default (`WaitUntil.Completed`). This can take several minutes for large resource groups.

For CI/automation scenarios where the caller doesn't need to wait, a `--no-wait` flag would allow fire-and-forget deletion (the previous `WaitUntil.Started` behavior).

## Proposed behavior

- **Default (no flag):** Wait for RG deletion to complete before reporting success
- **`--no-wait`:** Initiate deletion and return immediately with a message like "Resource group deletion started"

## Context

Follow-up from #16097. The default was changed from async to sync deletion to avoid confusing "deletion initiated" messaging and stale-state issues on immediate redeploy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.