-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when sync conditional access policy #4734
Comments
Does your tenant have at least one Entra ID P1 or P2 license to enable Conditional Access? |
@andikrueger If you look closely the deployment is actually failing for all resources with "Set-Targetresource: Failed creating new policy", the same issue has been reported already on #4725 and doesn't look like a licensing issue since this was working before. |
Before deploying in my company tenant, I test this function in the Microsoft CDX tenant. I have license M365 E5. |
In my event viewer, log reports: { Response status code does not indicate success: BadRequest (Bad Request). } \ at Set-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.529.1\DscResources\MSFT_AADConditionalAccessPolicy\MSFT_AADConditionalAccessPolicy.psm1: line 1682" And in line 1655 in MSFT_AADConditionalAccessPolicy.psm1 I found that Conditional use " $NewParameters.Add('ConditionalAccessPolicyId', $currentPolicy.Id)" But in Microsoft graph document, It does not have "ConditionalAccessPolicyId", It only has "Id". I try to fix but it not work |
hello, I have one computer with module Microsoft365dsc version 1.24.522.1. I have update the Microsoft365dsc recently. Does any one manage to create and update conditionalAccess object with version 1.24.522.1 and earlier version ? |
hello, One update from my end. The M365DSC team has switched from "Update-MgBetaIdentityConditionalAccessPolicy" to Invoke-MgGraphRequest. |
I can confirm that removing the TransferMethods= ""; does in fact correct the issue |
Description of the issue
I ran the code successfully, but nothing was updated in my tenant.
Microsoft 365 DSC Version
1.24.529.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
Tasks
The text was updated successfully, but these errors were encountered: