We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Within GCC-High (have not confirmed on commercial) adding terms of Use Conditional Access Policy fails because the ID isn't in an array.
In file Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1
if ($TermsOfUse) { Write-Verbose -Message "Gettign Terms of Use {$TermsOfUse}" $TermsOfUseObj = Get-MgBetaAgreement | Where-Object -FilterScript { $_.DisplayName -eq $TermsOfUse } $GrantControls.Add('termsOfUse', $TermsOfUseObj.Id) }
Should be
if ($TermsOfUse) { Write-Verbose -Message "Gettign Terms of Use {$TermsOfUse}" $TermsOfUseObj = Get-MgBetaAgreement | Where-Object -FilterScript { $_.DisplayName -eq $TermsOfUse } $GrantControls.Add('termsOfUse', @($TermsOfUseObj.Id)) }
Dev
Azure Active Directory (Entra ID)
The text was updated successfully, but these errors were encountered:
Fix microsoft#5742: Ensure TermsOfUse is an array in AADConditionalAc…
e3e2353
…cessPolicy
Successfully merging a pull request may close this issue.
Description of the issue
Within GCC-High (have not confirmed on commercial) adding terms of Use Conditional Access Policy fails because the ID isn't in an array.
In file Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1
Should be
Microsoft 365 DSC Version
Dev
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: