microsoft / Microsoft365DSC

Manages, configures, extracts and monitors Microsoft 365 tenant configurations
https://aka.ms/M365DSC
MIT License
1.53k stars 469 forks source link

IntuneDeviceEnrollmentLimitRestriction: Missing Assignments property #3915

Open ricmestre opened 9 months ago

ricmestre commented 9 months ago

Description of the issue

IntuneDeviceEnrollmentLimitRestriction is exported and can be applied/updated without issues but is missing the Assignments property so effectively it only can manage the default restriction which applies to all devices, not any other custom made since it cannot be assigned.

Microsoft 365 DSC Version

1.23.1115.1

Which workloads are affected

other

The DSC configuration

IntuneDeviceEnrollmentLimitRestriction "IntuneDeviceEnrollmentLimitRestriction-IntuneDeviceEnrollmentLimitRestriction_1"
        {
            ApplicationId         = $IntuneApplicationId;
            CertificateThumbprint = $IntuneCertThumbprint;
            Description           = "Test policy";
            DisplayName           = "IntuneDeviceEnrollmentLimitRestriction_1";
            Ensure                = "Present";
            Limit                 = 15;
            TenantId              = $OrganizationName;
        }

Verbose logs showing the problem

N/A

Environment Information + PowerShell Version

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : en-US
OsMuiLanguages       : {en-US, pt-PT}

Name                           Value
----                           -----
PSVersion                      5.1.22621.1778
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.1778
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
ricmestre commented 2 months ago

This is still ongoing, but I found out that property Priority is also missing.