Skip to content

ci: ensure Service Principal has Contributor role on resource group and fix infra formatting#212

Merged
Roopan-Microsoft merged 7 commits intomicrosoft:devfrom
Harmanpreet-Microsoft:dev
Sep 16, 2025
Merged

ci: ensure Service Principal has Contributor role on resource group and fix infra formatting#212
Roopan-Microsoft merged 7 commits intomicrosoft:devfrom
Harmanpreet-Microsoft:dev

Conversation

@Harmanpreet-Microsoft
Copy link
Copy Markdown
Contributor

Purpose

This pull request introduces a key update to the deployment workflow by ensuring the Service Principal is explicitly granted the Contributor role on the target resource group. This change helps prevent permission issues during deployment. Additionally, there is a minor formatting adjustment in the infrastructure code.

Deployment workflow improvement:

  • Added a step to the GitHub Actions workflow (.github/workflows/deploy.yml) to assign the Contributor role to the Service Principal for the resource group, ensuring proper permissions for deployment tasks.

Infrastructure code formatting:

  • Minor formatting adjustment in the infra/main.bicep file for resource group tags.
  • ...

Does this introduce a breaking change?

  • Yes
  • No

Golden Path Validation

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

Deployment Validation

  • 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

Updated createdDate parameter to use utcNow function.
Add role assignment step for Service Principal in deployment workflow.
Removed createdDate parameter from deployment.
@Roopan-Microsoft Roopan-Microsoft merged commit 6cff4f2 into microsoft:dev Sep 16, 2025
5 checks passed
Ritesh-Microsoft pushed a commit that referenced this pull request Oct 10, 2025
ci: ensure Service Principal has Contributor role on resource group and fix infra formatting
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.5.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants