Skip to content

ci: Enhanced deployment workflow with better resource management, cleanup logic#48

Open
Vamshi-Microsoft wants to merge 4 commits intomainfrom
psl-oidc
Open

ci: Enhanced deployment workflow with better resource management, cleanup logic#48
Vamshi-Microsoft wants to merge 4 commits intomainfrom
psl-oidc

Conversation

@Vamshi-Microsoft
Copy link

Purpose

This pull request significantly refactors the Azure deployment GitHub Actions workflow by introducing dynamic environment and resource group naming, switching to the Azure Developer CLI (azd) for deployment and cleanup, and improving secrets management and output reporting. The changes aim to make deployments more robust, flexible, and suitable for production environments, while also adding automated resource cleanup.

Key changes include:

Deployment workflow modernization:

  • Replaces static environment and resource group names with dynamically generated unique names for each workflow run, improving isolation and reducing naming collisions.
  • Switches from using repository variables to GitHub secrets for sensitive Azure credentials and sets additional environment variables for deployment consistency.
  • Updates the deployment process to use the Azure Developer CLI (azd) for authentication, environment management, and resource provisioning, replacing direct Bicep deployments and custom Python scripts.

Resource management and cleanup:

  • Adds a new cleanup job that automatically tears down deployed resources after the workflow completes, using azd down and a fallback resource group deletion step to ensure no orphaned resources remain.

Output and reporting improvements:

  • Enhances deployment and cleanup summaries with dynamically populated resource names and Azure Portal links, making it easier to track and verify deployed and deleted resources.

Workflow structure and environment changes:

  • Consolidates build and deploy jobs under a production environment, and updates job dependencies and outputs to support the new dynamic naming and cleanup logic. [1] [2]

These improvements make the workflow more secure, maintainable, and production-ready, while also reducing manual intervention for resource cleanup.

Does this introduce a breaking change?

  • Yes
  • No

@Vamshi-Microsoft Vamshi-Microsoft changed the title ci: Enhanced deployment workflow with better resource management, cleanup logic, and updated environment naming ci: Enhanced deployment workflow with better resource management, cleanup logic Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants