Oct 14 2022 02:49 AM
Hello,
How does inheritance work in Azure policy? I've subscription A with a policy to deny EC2 creation. But I create a policy specific to Resource Group with a policy to allow EC2 creation, which takes precedence?
Thanks
Oct 16 2022 10:32 PM
Oct 25 2022 08:11 AM
Solution@CyberSec Azure policy inheritance works in form of Hierarchy
Highest Precedence=== Management Group > Subscription> Resource Group >Resource.
Subscription Policy to Deny VM(EC2) will not allow you to create a VM as Subscription policy will override the allow policy at Resource Group level.