Can we define Azure Policy Definitions with different scopes in EPAC? #1010
Unanswered
kalevivek1988
asked this question in
Q&A
Replies: 1 comment 1 reply
-
My understanding is that with the Azure Policy specifications, policy definitions do not explicitly support the inclusion of a scope; only policy assignment definitions explicitly support a scope property. Policy definitions do support a "location" - such as a subscription or management group -where the policy will be stored. Location will then put a constraint on what "scope" can be allowed for assignment, as the scope must be somewhere below the hierarchy of the location.
EPAC will follow these Azure Policy specifications.
Perhaps you could provide a little more detail on what is driving the requirement to have policy definitions themselves limited to specific scopes, instead of using policy assignments.
Brian
From: Vivek Kale - RIT ***@***.***>
Sent: Thursday, July 24, 2025 8:14 AM
To: Azure/enterprise-azure-policy-as-code ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [Azure/enterprise-azure-policy-as-code] Can we define Azure Policy Definitions with different scopes in EPAC? (Discussion #1010)
Hi Team,
We are exploring the usage of this repo for our environment and have a requirement to create Azure Policy Definitions with different scopes (not just assignments but the definitions themselves).
Is it possible to define policy definitions with a specific scope using this framework?
Or does it only support centrally defined policy definitions (management group / subscription level) and then handle scope at the assignment level?
Any guidance or example for handling multiple scopes for definitions would be really helpful.
Thanks in advance!
Vivek
-
Reply to this email directly, view it on GitHub<#1010>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ASWPRU3F7TIBEQJ4GIQTIRT3KDZ5HAVCNFSM6AAAAACCJE5SU6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGYZDSMBZGY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
We are exploring the usage of this repo for our environment and have a requirement to create Azure Policy Definitions with different scopes (not just assignments but the definitions themselves).
Is it possible to define policy definitions with a specific scope using this framework?
Or does it only support centrally defined policy definitions (management group / subscription level) and then handle scope at the assignment level?
Any guidance or example for handling multiple scopes for definitions would be really helpful.
Thanks in advance!
Vivek
Beta Was this translation helpful? Give feedback.
All reactions