Update

For the latest version of this code please visit msgraph-sdk-powershell-examples.

Deprecated Content

Retrieving all Azure AD Conditional Access Policies using the Microsoft Graph SDK for PowerShell and the Get-MgIdentityConditionalAccessPolicy cmdlet.

Optionally saving each Conditional Access Policy as a JSON file.

PowerShell Code

Note: This code requires the Microsoft Graph SDK for PowerShell.