Create a Conditional Access policy in report-only mode
In this task you'll create a Conditional Access policy that requires MFA.
A policy has two halves. Assignments say who and what it covers: users or groups, target resources (apps), and conditions such as location, device platform or sign-in risk. Access controls say what happens: block, or grant access only if a condition is met, such as MFA.
Always start a new policy in Report-only mode. It's checked at every sign-in and the result is written to the sign-in logs, but nobody is blocked. Switch it on only once the logs show it does what you expect.
Example. SS Kaiser's first policy requires MFA for every user signing in to any app, but leaves out two break-glass admin accounts kept for emergencies, so one mistake can never lock everyone out.
Costs money. Conditional Access needs an Entra ID P1 licence. Use a test tenant with a 30-day trial (started in the Microsoft 365 admin center with a work account, not a personal Microsoft account), or a tenant that already has P1. Building the policy in Report-only mode changes nothing for anyone.
Before you start
You need: Conditional Access Administrator or Security Administrator, and Entra ID P1 (or a trial). Time: 20 minutes.
Where to look
- entra.microsoft.com
- Entra ID
- Conditional Access
- Policies
- + New policy
Steps
- Create a group called ca-pilot and add one test user to it (see Create a group and add members).Testing on a small group first is how it's done at work, too.
- Open Entra ID, then Conditional Access, then Policies, and select + New policy.+ Create new policy from templates offers ready-made policies. Building one yourself shows what each setting does.
- Name it CA001: Require MFA for pilot users.A number and a plain description make a long list of policies easy to read.
- Under Users, choose Select users and groups, tick Users and groups and pick ca-pilot. Under Exclude, add your own admin account.Excluding yourself while you learn means a mistake can't lock you out.
- Under Target resources, choose All resources (formerly 'All cloud apps').The label has changed over time. Look for the option that covers every app.
- Under Grant, choose Grant access, tick Require multifactor authentication and select Select.
- Set Enable policy to Report-only and select Create.If security defaults are on, the portal won't let you choose On, only Report-only or Off. That's a useful safety net.
- Sign in as the test user in a private browser window, then look at the result in the next task.
Commands
# Look at one policy's settings as JSON (needs Policy.Read.All)
az rest --method get \
--url "https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies?\$filter=startswith(displayName,'CA001')" \
--query "value[].{name:displayName, state:state, grant:grantControls.builtInControls}"
Watch out for
- Cost
- Every user a policy covers needs a P1 licence. Report-only policies still need the licence to exist.
- Security
- Always exclude at least one break-glass account from every policy, and check it can still sign in. Never switch a policy to On before reading its report-only results.
- Common mistakes
- Targeting All users and switching straight to On, which can lock out every admin. Forgetting that security defaults must be off before any policy can be On.
Clean up
- Entra ID
- Conditional Access
- Policies
- CA001: Require MFA for pilot users
- Delete
Delete the policy, then the ca-pilot group and the test user if you made them only for this. If you started a P1 trial, it ends by itself after 30 days.
Words to know
- Assignments
- Who and what a policy covers: users, target resources and conditions.
- Grant control
- What a user must do to get in, such as complete MFA or use a compliant device.
- Report-only
- A mode where the policy is evaluated and logged, but not enforced.
- Break-glass account
- An emergency admin account left out of every policy, so you can always sign in to fix things.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On