Skip to content

feat: extend custom role definitions with additional permissions for …#92

Merged
jaredfholgate merged 1 commit into
mainfrom
release/add-terraform-role-assignment-actions
May 16, 2025
Merged

feat: extend custom role definitions with additional permissions for …#92
jaredfholgate merged 1 commit into
mainfrom
release/add-terraform-role-assignment-actions

Conversation

@jaredfholgate
Copy link
Copy Markdown
Member

…Azure resources to correct deployment failures using terraform

Overview/Summary

Currently the terraform alz_management_group_contributor role does not possess sufficient permissions to deploy custom roles and custom policies. This request aligns this role with the bicep contributor which does have the correct permissions as per 341

This PR fixes/adds/changes/removes

Resolves issues whereby the custom role for terraform apply does not contain sufficient permissions to create the roles and policies required by the accelerator

Breaking Changes

None

Testing Evidence

Giving the apply MI owner rights to the root management group allows the roles and policies to be created. Modifying the custom role with the bicep permissions also allows this to function correctly.

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant issues, for tracking and closure.
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Updated relevant and associated documentation.

…terraform (#91)

* feat: extend custom role definitions with additional permissions for Azure resources to correct deployment failures using terraform

* align permissions as per request

* align permissions for all deployment tools
@jaredfholgate jaredfholgate self-assigned this May 16, 2025
@jaredfholgate jaredfholgate added the PR: Safe to test 🧪 Enables running of End to End Tests label May 16, 2025
@jaredfholgate jaredfholgate requested a review from Copilot May 16, 2025 12:08
Copy link
Copy Markdown

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 extends the custom role definitions for Terraform deployments by adding additional permissions to align with the bicep contributor role and resolve deployment failures.

  • Added new permissions to write policy definitions, policy set definitions, policy assignments, role definitions, role assignments, and diagnostic settings
  • Updated variables across alz/local, alz/github, and alz/azuredevops modules to support these changes

Reviewed Changes

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

File Description
alz/local/variables.tf Extended the custom role with new policy and role write permissions
alz/github/variables.tf Adjusted permission entries, reordering management group permissions
alz/azuredevops/variables.tf Added new permissions for policy and role management

Comment thread alz/local/variables.tf
Comment thread alz/github/variables.tf
Comment thread alz/azuredevops/variables.tf
@jaredfholgate jaredfholgate merged commit a75fd86 into main May 16, 2025
33 checks passed
@jaredfholgate jaredfholgate deleted the release/add-terraform-role-assignment-actions branch May 16, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Safe to test 🧪 Enables running of End to End Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants