Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Recommended SPN permissions for this terraform-azurerm-policy-exemptions module #11

Answered by jesseloudon
tpidor asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tpidor

There's currently no Azure RBAC built-in role which only provides access to manage only ARM template deployments and policy exemptions

If constraining the SPN to the least permissions possible to use this module is a requirement I recommend creating a custom role with at least these 2x actions only, then assign your SPN to the new custom role:

Microsoft.Resources/deployments/* -- Create and manage a deployment
Microsoft.Authorization/policyexemptions/* -- Create and manage policy exemptions

https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles

Hope this helps

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jesseloudon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6 on October 31, 2021 00:46.