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.