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
412 stars 201 forks source link

Automated cleanup for template tests #282

Closed danieljurek closed 1 year ago

danieljurek commented 2 years ago

Live tests of samples provision and deploy in resource groups with a DeleteAfter tag. In the case of templates we should add tags to the deployments so those can be cleaned up by automation as well.

If we don't tag resource groups we will leak resources in certain build failures including agent crashes, network failures, or failures in the test script which halt execution of deprovisioning steps.

Couple ways to do this:

vhvb1989 commented 2 years ago

is this fixed by this: https://github.com/Azure/azure-dev/issues/481 ???

weikanglim commented 1 year ago

We definitely add tags with DeleteAfter as-of today. Closing this.