Share via

AAD-Conditional Access Policy- Cannot bind parameter Conditions

K Roja 61 Reputation points
2022-10-06T06:40:12.457+00:00

Hello Team,

While creating conditional access policy through automation (PowerShell), we are getting below error-
PFA the code

ERROR
Cannot bind parameter 'Conditions'. Cannot convert the "class ConditionalAccessConditionSet {
Applications: class ConditionalAccessApplicationCondition {
IncludeApplications: System.Collections.Generic.List`1[System.String]
ExcludeApplications:
IncludeUserActions:
IncludeProtectionLevels:
}

Users: class ConditionalAccessUserCondition {
IncludeUsers: System.Collections.Generic.List1[System.String] ExcludeUsers: System.Collections.Generic.List1[System.String]
IncludeGroups:
ExcludeGroups:
IncludeRoles:
ExcludeRoles:
}

Platforms:
Locations: class ConditionalAccessLocationCondition {
IncludeLocations: System.Collections.Generic.List1[System.String] ExcludeLocations: System.Collections.Generic.List1[System.String]
}

SignInRiskLevels:
ClientAppTypes: System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.ConditionalAccessClientApp]
}
" value of type "Microsoft.Open.MSGraph.Model.ConditionalAccessConditionSet" to type "Microsoft.Open.MSGraph.Model.ConditionalAccessConditionSet".

FYI
1- We are connecting to AzureAD
2- We have installed Microsoft.Graph*

CODE

247918-code.txt

Microsoft Security | Microsoft Entra | Microsoft Entra ID

2 answers

Sort by: Most helpful
  1. Sohaibuddin Ahmed 1 Reputation point
    2024-02-07T12:54:35.1133333+00:00

    has this been resolved??

    Was this answer helpful?

    0 comments No comments

  2. Akshay Kaushik 18,026 Reputation points Microsoft Employee Moderator
    2022-11-07T04:07:45.82+00:00

    Hello KRoja-2036,

    Please be informed that a case has been raised on this and dev team is investigating on this issue.

    Thanks,
    Akshay Kaushik

    Was this answer helpful?

    0 comments No comments

Your answer

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