Skip to content

Commit

Permalink
Fix limited result issue with more than 25 results
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienTschanz committed Nov 4, 2024
1 parent 99947f3 commit 0397973
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 @@ -112,6 +112,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 0397973

Please sign in to comment.