Skip to content

Azure: Delete resource groups between all samples runs.#47

Merged
DrisDary merged 12 commits into
mainfrom
sample-app-delete-rgs
Feb 20, 2026
Merged

Azure: Delete resource groups between all samples runs.#47
DrisDary merged 12 commits into
mainfrom
sample-app-delete-rgs

Conversation

@DrisDary
Copy link
Copy Markdown
Contributor

@DrisDary DrisDary commented Feb 20, 2026

Previously, resource group cleanup between sample runs only happened for Bicep samples. Script-based samples like web-app-cosmosdb-mongodb-api and web-app-sql-database had no cleanup between them — only a docker system prune which cleans Docker but not the emulator's state. This meant resources from one sample (like a webapp named local-webapp-test) would still exist when the next sample ran, causing state pollution. We moved the resource group deletion block out of the Bicep-only conditional so it now runs after every sample, giving each one a clean slate.

Copy link
Copy Markdown
Contributor

@paolosalvatori paolosalvatori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks mate 🙏

@DrisDary DrisDary marked this pull request as ready for review February 20, 2026 14:55
@DrisDary DrisDary merged commit c15235f into main Feb 20, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants