powershell script to display the list of applications using specific Conditional Access Policy

Singampalli,R,RamaKrishna,QGE R 26 Reputation points
2022-12-13T13:30:15.767+00:00

Hi Team,

Lets say i have Conditional Access Policy( CA1,CA2,CA3) in our tenant , but i want the application list of apps

which has applied only CA1 policy.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,934 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Harpreet Singh Matharoo 8,396 Reputation points Microsoft Employee Moderator
    2022-12-14T10:37:21.95+00:00

    Hello @Singampalli,R,RamaKrishna,QGE R

    Thank you for reaching out. I would like to confirm you can achieve this using Azure AD PowerShell and Conditional Access DisplayName.

    Connect-AzureAD  
    $A = Get-AzureADMSConditionalAccessPolicy | Where-Object {$_.DisplayName -like "CA002 - Limit Azure Management on SAW machines"} | Select-Object -ExpandProperty Conditions  
    $A.Applications | FL  
    

    Sample Output:
    270518-image.png

    More information about this command can be found following link: Get-AzureADMSConditionalAccessPolicy

    I hope this helps.

    ----------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.