Skip to content

Commit

Permalink
Merge pull request #5328 from FabienTschanz/fix/intune-custom-policy-…
Browse files Browse the repository at this point in the history
…limit

Fix limited result issue with more than 25 results
  • Loading branch information
NikCharlebois authored Nov 4, 2024
2 parents 2d0108f + 0397973 commit 08ae4c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@
* Initial release.
* IntuneSecurityBaselineDefenderForEndpoint
* Initial release.
* IntuneSettingCatalogCustomPolicyWindows10
* Fixes an issue with limited results when more than 25 results are present.
* Intune workload
* Fixed missing permissions in settings.json
* M365DSCRuleEvaluation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function Get-TargetResource
{
$getValue = Get-MgBetaDeviceManagementConfigurationPolicy `
-Filter "Name eq '$Name' and Platforms eq 'windows10' and Technologies eq 'mdm' and TemplateReference/TemplateFamily eq 'none'" `
-All `
-ErrorAction SilentlyContinue

if ($getValue.Count -gt 1)
Expand Down Expand Up @@ -930,7 +931,7 @@ function Update-IntuneDeviceConfigurationPolicy
try
{
$Uri = $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/configurationPolicies/$DeviceManagementConfigurationPolicyId"

$policy = @{
'name' = $Name
'description' = $Description
Expand Down

0 comments on commit 08ae4c6

Please sign in to comment.