How to use Azure Enterprise Policy as Code (EPAC) with Terraform as sub-module?

Rajesh Swarnkar 911 Reputation points
2025-07-31T05:13:12.2166667+00:00

hello, I need to manage 40+ subscriptions and the Enteprise level Azure policies. Currently we are using Blueprints for defining Customized ARM tempaltes as artifacts.

But since Bluerints are marked for depreaction I am trying to move out of Blueprints altoghther. I took an approach of trying to translate the Custom ARM (which are mostly PolicySet, Policy Definitions and Assignments) into Terraform Resources.

This process is quite slow and error prone. I got to know about Azure EPAC.

But I am unware of whether

  • EPAC can be used as child module (sub-module) into existing Terraform Repo/Project.
  • highly unsure how to make use of EPAC + Terraform ?
  • Is EPAC supports modules as First-Class Citizen in Terraform?

There is similar question out there, but no satifactory answer yet.

Thanks in advance !

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.