You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm able to create new AADClaimsMappingPolicy resources, but every time I run the deployment it never finds them and it's duplicating the same resource creating new policies all the time.
This happens because on Get-TargetResource the cmdlet Get-MgBetaPolicyClaimMappingPolicy is being called and the result is then filtered on $_.AdditionalProperties.'@odata.type' -eq "#microsoft.graph.ClaimsMappingPolicy" but the policies have null AdditionalProperties so they're never found, this filter was most likely added automatically by the DRG but in this case is causing an issue.
Description of the issue
I'm able to create new AADClaimsMappingPolicy resources, but every time I run the deployment it never finds them and it's duplicating the same resource creating new policies all the time.
This happens because on Get-TargetResource the cmdlet Get-MgBetaPolicyClaimMappingPolicy is being called and the result is then filtered on $_.AdditionalProperties.'@odata.type' -eq "#microsoft.graph.ClaimsMappingPolicy" but the policies have null AdditionalProperties so they're never found, this filter was most likely added automatically by the DRG but in this case is causing an issue.
I'll open a PR for this.
Microsoft 365 DSC Version
1.24.1127.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
N/A
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: