Skip to content

IntuneDeviceEnrollmentScopeConfigurationMdm

Parameters

Parameter Attribute DataType Description Allowed Values
IsSingleInstance Key String Only valid value is 'Yes'. Yes
IsMdmEnrollmentDuringRegistrationDisabled Write Boolean Controls the option if users in an automatic enrollment configuration on Microsoft Entra registered devices are prompted to MDM enroll their device in the Entra account registration flow.
AppliesTo Write String Indicates the user scope of the mobility management policy. The possible values are: none, all, selected. none, all, selected
ComplianceUrl Write String Compliance URL of the mobility management application.
DiscoveryUrl Write String Discovery URL of the mobility management application.
TermsOfUseUrl Write String Terms of Use URL of the mobility management application.
IncludedGroups Write StringArray[] The group display names that are included if the scope is set to 'Selected'.
Credential Write PSCredential Credentials of the Admin
TenantId Write String Id of the Azure Active Directory tenant used for authentication.
AccessTokens Write StringArray[] Access token used for authentication.

Description

Intune Device Enrollment Scope Configuration Mdm

Permissions

Microsoft Graph

To authenticate with the Microsoft Graph API, this resource requires the following permissions:

Delegated permissions

  • Read
  • Group.Read.All, Policy.Read.All

  • Update

  • Group.Read.All, Policy.ReadWrite.MobilityManagement

Application permissions

  • Read
  • None

  • Update

  • None

Examples

Example 1

This example is used to test new resources and showcase the usage of new resources being worked on. It is not meant to use as a production baseline.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.Management.Automation.PSCredential]
        $Credential
    )

    Import-DscResource -ModuleName Microsoft365DSC

    node localhost
    {
        IntuneDeviceEnrollmentScopeConfigurationMdm "IntuneDeviceEnrollmentScopeConfigurationMdm"
        {
            AppliesTo            = "all";
            ComplianceUrl        = "https://portal.manage.microsoft.com/?portalAction=Compliance";
            Credential           = $Credential;
            DiscoveryUrl         = "https://enrollment.manage.microsoft.com/enrollmentserver/discovery.svc";
            IsSingleInstance     = "Yes";
            TermsOfUseUrl        = "https://portal.manage.microsoft.com/TermsofUse.aspx";
        }
    }
}