Skip to content

Commit

Permalink
Merge pull request microsoft#5098 from FabienTschanz/fix/o365group-wo…
Browse files Browse the repository at this point in the history
…rkload

Fix O365Group workload detection
  • Loading branch information
NikCharlebois authored Sep 26, 2024
2 parents 697432c + 541aa42 commit e3e4881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
* IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10
* Add missing `AccessTokens` parameter to `Export-TargetResource`
FIXES [#5034](https://github.com/microsoft/Microsoft365DSC/issues/5034)
* M365DSCUtil
* Fixes an issue where the O365Group workload was not properly detected.
FIXES [#5095](https://github.com/microsoft/Microsoft365DSC/issues/5095)
* SCDeviceConditionalAccessRule
* Initial release.
* SCDeviceConfigurationRule
Expand Down
2 changes: 1 addition & 1 deletion Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -4187,7 +4187,7 @@ function Get-M365DSCWorkloadsListFromResourceNames
}
'O3'
{
if (-not $workloads.Name -or -not $workloads.Name.Contains('MicrosoftGraph') -and $resource -eq 'O365Group')
if (-not $workloads.Name -or -not $workloads.Name.Contains('MicrosoftGraph') -and $resource.Name -eq 'O365Group')
{
$workloads += @{
Name = 'MicrosoftGraph'
Expand Down

0 comments on commit e3e4881

Please sign in to comment.