Microsoft Entra resource policies launch in preview

  • Post author:
  • Post category:Microsoft Entra / News
  • Post last modified:
  • Reading time:5 mins read
  • Post published:

Until now, an administrator or script with the right Entra role assigned could easily create an application, group, or Conditional Access policy that broke your internal standards, which you may have only spotted once the impact has become apparent to your end users. You are expected to have a level of trust of the users making changes in your tenant, and just accept that user mistake happen, which is inevitable. The new Microsoft Entra resource policy preview, evaluates matching Microsoft Graph requests before those changes reach your tenant. Changing the trust model, to that similar of Azure Policy, which is “Never trust”, the first pillar of the Zero Trust model.

What are resource policies and their purpose

Resource policies enforce configuration rules across supported Entra directory resources and actions, including users, groups, application registrations, Conditional Access policies, agent identities, and actions such as adding application keys or assigning licences. You can deploy Microsoft-managed built-in policies with custom parameters, or you can write custom definitions in Rego, the declarative policy language from Open Policy Agent. Because the service evaluates matching Graph requests as they arrive, assigning a policy neither scans pre-existing objects nor replaces the role or API permissions a caller needs. This is a fixing forward configuration, and will not retrospective remediate actions that have happened in the past which fall out of compliance.

How to enable resource policies

You can adopt resource policies in a single tenant without enabling related tenant discovery or governance relationships, either in the Entra admin center or via Microsoft Graph REST APIs. Following the built-in policy quickstart:

  • Open the Entra admin center
  • Browse to Tenant governance > Definitions
  • Pick a built-in definition, and select Add assignment.
  • Set the status to On, supply your parameters, and choose Report-only (doNotEnforce) so matching requests are logged without being blocked.

Before switching to enforce, you can test simulated payloads against the evaluateAssignedPolicies beta endpoint in Graph Explorer.

Should you use resource policies

Because resource policy is in preview and does not generate aggregated impact reports from evaluation audit events, Personally I would keep enforcement out of production for now. But, that doesn’t mean that you can’t, and you should start by assigning a built-in policy in doNotEnforce mode inside a test tenant, then you can check the Graph evaluation audit logs to confirm that existing scripts and service principals will not break. Because resource policies only block new changes, you can pair this Tenant Governance configuration management to detect drift across existing settings.

Now, will it ever be better that other third-party products? probably not. I won’t name any third-party products here, as I am not affiliated with any. But most certainly you will get a better, simpler experience but using a service which overlays Microsoft Entra to manage action governance and drift detection. That being said, if you are already paying for the require licensing, it will probably be good enough for what you need.

Licensing and prerequisites for resource policies

Most preview operations, including creating, editing, or activating definitions and assignments, require Microsoft Entra ID Governance, Microsoft Entra Suite, or Microsoft 365 E7. That licence is still required for active assignments in doNotEnforce mode, although browsing definitions, deleting policies, and deactivating assignments work without it. You also need the Resource Policy Administrator role to manage and evaluate policies, Reports Reader or AuditLog.Read.All for audit events, and Graph permissions like ResourcePolicyEvaluation.Read.All for API testing.

In some instances too, because the underlying service acts as itself (and not you, the user) when evaluating resources at the time of change, a privileged application needs to be configured with the required read access. This makes the solution way more complex than it needs to be to manage it. Follow the official learn documentation for the official “How to” here.

Resource policies vs Azure Policy

Although the assignment model resembles Azure Policy, the two services govern different control planes. Azure Policy evaluates Azure Resource Manager resources across management groups, subscriptions, and resource groups using JSON definitions, and it provides scheduled compliance scans and bulk remediation for existing resources. Microsoft Entra resource policy targets Microsoft Graph directory requests inside your Entra tenant using Rego definitions, and it blocks noncompliant writes rather than remediating existing objects. It’s important to make a clear distinction between the two. Lost of professionals I work with today still solely manage Entra via the Azure Portal, which in all honestly, just needs to be retired at this point.

Resource policies and protected actions

Resource policies and Microsoft Entra protected actions address different sides of administrative governance and I can envision where wires are going to get crosses. Protected actions attach Conditional Access policies to sensitive permissions, such as editing Conditional Access policies or hard-deleting objects, so you can require phishing-resistant MFA or a privileged workstation before the action runs. Resource policies inspect the Graph payload itself and block noncompliant values even when the caller holds the right role and satisfies Conditional Access.

Daniel Bradley

Daniel Bradley is a UK-based technical architect and Microsoft MVP in Security. He specialises in Microsoft Entra, Intune, and Microsoft Graph PowerShell and is the author of Microsoft Graph PowerShell for Administrators. He writes and edits Our Cloud Network using experience gained from working with Microsoft cloud environments.

Leave a Reply