Skip to content

Commit

Permalink
Fix MaOS update configuration policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Tschanz committed Apr 24, 2024
1 parent d148031 commit e7c5139
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* IntuneDeviceConfigurationDefenderForEndpointOnboardingPolicyWindows10
* Fixed a comparison issue when Defender for Endpoint is connected to Intune and the
onboarding blob is generated by the Defender for Endpoint service.
* IntuneDeviceConfigurationPolicyMacOS
* Fixed an issue where the update policy setting was not handled properly.
* MISC
* Added support for AccessTokens in EXO resources.
* Updated MSCloudLoginAssistant dependencies to version 1.1.16.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,10 @@ function Set-TargetResource
{
$PSBoundParameters.UpdateDelayPolicy = $UpdateDelayPolicy -join ','
}
else
{
$PSBoundParameters.UpdateDelayPolicy = 'none'
}

if ($Ensure -eq 'Present' -and $currentInstance.Ensure -eq 'Absent')
{
Expand Down Expand Up @@ -813,7 +817,8 @@ function Set-TargetResource
{
$CreateParameters.add('AdditionalProperties', $AdditionalProperties)
}#>
$CreateParameters.add('@odata.type','#microsoft.graph.macOSGeneralDeviceConfiguration')
$CreateParameters.Add('@odata.type','#microsoft.graph.macOSGeneralDeviceConfiguration')

#region resource generator code
$policy = New-MgBetaDeviceManagementDeviceConfiguration -BodyParameter $CreateParameters
$assignmentsHash = @()
Expand Down

0 comments on commit e7c5139

Please sign in to comment.