Skip to content

feat: Add weekly schedule for Azure Template validation,split azure-dev to azure-dev,azd-template for content gen#794

Open
Tejasri-Microsoft wants to merge 2 commits intodevfrom
psl-content-gen-templatev
Open

feat: Add weekly schedule for Azure Template validation,split azure-dev to azure-dev,azd-template for content gen#794
Tejasri-Microsoft wants to merge 2 commits intodevfrom
psl-content-gen-templatev

Conversation

@Tejasri-Microsoft
Copy link
Copy Markdown

This pull request restructures and improves the GitHub Actions workflows for Azure template validation and deployment. The main changes separate template validation and deployment into distinct workflows, modernize deployment steps, and enhance security and maintainability.

Workflow Restructuring and Separation:

  • Introduced a new workflow .github/workflows/azd-template-validation.yml dedicated to scheduled and manual Azure template validation using the microsoft/template-validation-action, with relevant secrets and variables for secure authentication.
  • Refactored .github/workflows/azure-dev.yml to focus solely on deployment, renaming it to "Azure Dev Deploy" and removing template validation steps.

Deployment Process Improvements:

  • Updated the deployment workflow to use Azure/setup-azd and azure/login actions for more robust and secure authentication with Azure, replacing manual CLI login steps.
  • Enhanced the deployment job to create or select the target Azure environment and run azd up for provisioning and deployment, streamlining the process and improving error handling.

Security and Configuration:

  • Ensured all workflows use GitHub secrets and variables for sensitive information and configuration, adhering to best practices for credential management. [1] [2]## Purpose
  • ...

Does this introduce a breaking change?

  • Yes
  • [ x] No

Golden Path Validation

  • [ X] I have tested the primary workflows (the "golden path") to ensure they function correctly without errors.

Deployment Validation

  • [X ] I have validated the deployment process successfully and all services are running as expected with this change.

What to Check

Verify that the following are valid

  • ...

Other Information

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restructures GitHub Actions by separating AZD template validation into its own scheduled workflow and refocusing the existing azure-dev workflow on deployment via azd.

Changes:

  • Added a new scheduled/manual workflow for template validation using microsoft/template-validation-action.
  • Refactored azure-dev.yml into an azd-based deployment workflow using OIDC (azure/login) and Azure/setup-azd.
  • Moved configuration to GitHub secrets/vars and streamlined deploy steps (azd env select/new + azd up).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/azure-dev.yml Converts workflow into an azd deployment job using OIDC login and automated env selection/creation.
.github/workflows/azd-template-validation.yml Introduces scheduled/manual template validation workflow using the template validation action and Azure-related env inputs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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