How to bulk export and import Conditional Access policies
- Vlad Johansen
- Sep 26, 2024
- 2 min read
By default it's not possible to bulk export and import conditional access policies in Entra ID portal UI. It can be done with powershell script, but there is an easier method. Today I want to show you a method with Mikael Karlsson's awesome tool named Intune Management
This tool is also powershell based but it has UI and it's very easy to use
Here is a direct download link: IntuneManagement/README.md at master · Micke-K/IntuneManagement · GitHub
Press Code and choose Download zip
Unzip the folder and start the Start.cmd from IntuneManagement-master folder
PS: Don't forget to unblock the cmd file in properties
Press here in the top right corner and sign in with Conditional Access Administrator account
After sign in , click on the logo again and press Request Consent
Go to Conditional Access in the left menu
Choose which Conditional Access policies you want to export and press export button
Choose where you want to save your Conditional Access policies and press Export All
In progress
Go to your export root folder and find your exported Conditional Access .json files here
To import this CA policies to another tenant, sign in with another Conditional Access administrator, go to Import and choose the export folder
Decide if you want to Assign scope and import assignments and always import your policies in off state if they are new. You can also choose import type Replace or Update or Skip if objects already exist.
There is also another cool function named Document, this function can create a .DOCX, CSV, HTML etc. documentation of your Conditional Access policies
Here is an example with .docx
Here is the result
Pretty cool? Yeah
Happy exporting and importing and have a nice day.
Bình luận