Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dstreefkerk/e1594c74d817e8f37cd622580adad180 to your computer and use it in GitHub Desktop.
Save dstreefkerk/e1594c74d817e8f37cd622580adad180 to your computer and use it in GitHub Desktop.
KQL Query to retrieve from Log Analytics a list of Conditional Access policy names and IDs
SigninLogs
| mv-expand ConditionalAccessPolicies
| project DisplayName = tostring(ConditionalAccessPolicies.displayName),ID = tostring(ConditionalAccessPolicies.id)
| distinct ID,DisplayName
| order by DisplayName asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment