Giter VIP home page Giter VIP logo

conditional-access-starter-pack's Introduction

Conditional Access Starter Pack

This repository contains a simple script that can help you deploy a good baseline of Conditional Access Policies to your Azure AD tenant. The following conditional access policies will be created, which should keep you covered in most circumstances:

  • All apps - Block legacy authentication
  • All apps - Require MFA for all guests
  • All apps - Require MFA for all users assigned Azure AD roles
  • All apps - Require MFA or compliant device for all users
  • Azure management - Require MFA for all users
  • Microsoft 365 - Enable session controls for all users
  • Microsoft 365 - Require approved app for all users
  • User action - Block register security info for all users when not in acceptable location
  • User action - Require MFA for all users when registering device

Prerequisites

Usage

  • Download or clone this repository to a computer with PowerShell 7
  • Start pwsh.exe (or similar for Mac and Linux)
  • Navigate to the folder where you downloaded this repository and run Deploy.ps1 with the following parameters
Parameter Required? Type Description
Tenant Yes String The x.onmicrosoft.com tenant name of the tenant where you want to deploy the CA policies
ExemptedAccounts Yes String array A list of users (upns or objectids) that will be exempted from policies blocking or requiring MFA or other grant
NamedLocationsForSecurityRegistration No String The names of the named locations approved for registering security information
DeleteUnknownPolicies No Boolean Set to true in order to automatically delete policies not convered by this deployment script

The script supports the -WhatIf parameter, if you want to "pretend" to run the script first, to see what it will do.

Example 1

.\Deploy.ps1 -Tenant "M365x843525.onmicrosoft.com" -ExemptedAccounts "[email protected]","[email protected]" -DeleteUnknownPolicies:$true  -NamedLocationsForSecurityRegistration "Norway","Sweden","Denmark"

Example 2

.\Deploy.ps1 -Tenant "M365x843525.onmicrosoft.com" -ExemptedAccounts "[email protected]","[email protected]" -Verbose -WhatIf

conditional-access-starter-pack's People

Contributors

mariussm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.