An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hello David, Welcome to MS Q&A
Yes, it is possible to create a custom policy in Azure that implements a deny resource type policy using resource selectors. Resource selectors allow you to specify which resources should be evaluated for compliance based on certain criteria, such as resource location or type. This means you can define a policy that denies specific resource types while leveraging resource selectors to narrow down the scope of evaluation.
However, the actual parameters for the deny action must still be specified within the policy definition itself. Resource selectors can help target specific resources but do not replace the need for defining the parameters of the policy.
For more detailed information, you can refer to the following Microsoft documentation:
- Azure Policy assignment structure
- What is Azure Policy?
- Tutorial: Disallow resource types in your cloud environment
Kindly accept answer if it helps
Please let us know if any further questions
Thanks
Deepanshu