Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntuneDeviceEnrollmentPlatformRestriction: Cannot export or define priority #4081

Closed
ricmestre opened this issue Dec 21, 2023 · 0 comments · Fixed by #4295, #4300 or #4310
Closed

IntuneDeviceEnrollmentPlatformRestriction: Cannot export or define priority #4081

ricmestre opened this issue Dec 21, 2023 · 0 comments · Fixed by #4295, #4300 or #4310
Labels
Enhancement New feature or request Intune

Comments

@ricmestre
Copy link
Contributor

Description of the issue

IntuneDeviceEnrollmentPlatformRestriction policies can have priorities assigned to them nevertheless this cannot be done via M365DSC since the parameter is missing.

Microsoft 365 DSC Version

1.23.1220.1

Which workloads are affected

other

The DSC configuration

IntuneDeviceEnrollmentPlatformRestriction "IntuneDeviceEnrollmentPlatformRestriction-IntuneDeviceEnrollmentPlatformRestriction_1"
        {
            ApplicationId                     = $IntuneApplicationId;
            Assignments                       = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    deviceAndAppManagementAssignmentFilterType = 'none'
                    dataType = '#microsoft.graph.groupAssignmentTarget'
                    deviceAndAppManagementAssignmentFilterId = '00000000-0000-0000-0000-000000000000'
                    groupId = 'b0b8fd3f-af2a-453b-be57-80182d599f02'
                }
            );
            CertificateThumbprint             = $IntuneCertThumbprint;
            DeviceEnrollmentConfigurationType = "singlePlatformRestriction";
            DisplayName                       = "IntuneDeviceEnrollmentPlatformRestriction_1";
            Ensure                            = "Present";
            Identity                          = "7857eee0-7b91-48e4-a72c-f66f36c4a483_SinglePlatformRestriction";
            TenantId                          = $OrganizationName;
            WindowsRestriction                = MSFT_DeviceEnrollmentPlatformRestriction{
                platformBlocked = $True
                personalDeviceEnrollmentBlocked = $True
            };
        }

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.2428
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22621.2428
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Intune
Projects
None yet
2 participants