M365 Conditional Access baseline + one-click browser deployer for Microsoft 365

Posted by FunctionPitiful@reddit | sysadmin | View on Reddit | 3 comments

Sharing something I built for my own tenants and figured others might use.

For anyone managing M365: Conditional Access is the policy engine that gates sign-ins (require MFA, block legacy auth, block from outside trusted countries, etc.). Setting up a sane baseline is a half-day job per tenant and easy to misconfigure into a lockout.

Built a hardened baseline (40 policies, 6 personas including admins / guests / service accounts / workload agents) and a browser-based deployer that ships it without any of the usual hassle:

Lockout-safe by design: the deploy code hardcodes the disabled/report-only state, so even a bad commit can't flip policies to enforced.

https://github.com/Teuftis/ConditionalAccessBaseline-Hardened

MIT, free, open to feedback. If you spin it up on a dev tenant and something breaks, file an issue.