Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
402 stars 195 forks source link

ux: improve `azd down` to show individual resource deletions and timings #4324

Open weikanglim opened 5 days ago

weikanglim commented 5 days ago

Let's improve on the UX for azd down.

A suggestion is that we take the format of what we have for azd provision: image

And apply it to azd down:

image

Concretely this means:

  1. The resource(s) printed out should be the same list
  2. The format of output should be similar
  3. The individual resource timings of each deletion should be available
weikanglim commented 4 days ago

I think we'd also want to track "delete" vs "purge" (hard-delete if there's a soft-delete option for a resource) separately

ellismg commented 3 days ago

Does ARM expose this information to use today (via some nested operation thing like we have during provision) or are we going to have to continuously poll the resource groups to try to observe deletions?

For purge since they are classic LROs I can see how we can get timing information on a granular level, but I'm less certain we can get per resource delete information while deleting the resource group itself.