-
Notifications
You must be signed in to change notification settings - Fork 532
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
Fix #5742: Ensure TermsOfUse is an array in AADConditionalAccessPolicy #5772
base: Dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add an entry to the changelog as well?
{ | ||
Write-Verbose -Message "Getting Terms of Use {$TermsOfUse}" | ||
$TermsOfUseObj = Get-MgBetaAgreement | Where-Object -FilterScript { $_.DisplayName -eq $TermsOfUse } | ||
$GrantControls.Add('termsOfUse', @($TermsOfUseObj.Id)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Pranaykarvi Is it only the view or did the indentation change? Please keep it the same as it was previously, thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FabienTschanz i have resolved the indentation and is now same as it was previously
@FabienTschanz I have also made an entry to the changelog |
CHANGELOG.md
Outdated
@@ -23,6 +23,9 @@ | |||
* TeamsM365App | |||
* Remove `Ensure` property from being exported. | |||
FIXES [#5781](https://github.com/microsoft/Microsoft365DSC/issues/5781) | |||
* **AADConditionalAccessPolicy** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the double stars **
please? I guess they were mistakenly added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FabienTschanz done, can you please check now?
Co-authored-by: Fabien Tschanz <71251572+FabienTschanz@users.noreply.github.com>
@NikCharlebois LGTM. |
Fix for Issue #5742
Summary
MSFT_AADConditionalAccessPolicy.psm1
to wrap TermsOfUse ID in@()
.Changes Made
Modules/Microsoft365DSC/DSCResources/MSFT_AADConditionalAccessPolicy/MSFT_AADConditionalAccessPolicy.psm1
$TermsOfUseObj.Id
in an array to ensure compliance.Issue Reference
Fixes #5742