Modules/M365DSCRelationTemplates.json

{
  "templates": {
    "IntuneAssignments": {
      "relations": [
        {
          "property": "Assignments",
          "childProperty": "groupDisplayName",
          "targetResource": "AADGroup",
          "targetKeyProperty": "DisplayName",
          "condition": "dataType in ['#microsoft.graph.groupAssignmentTarget', '#microsoft.graph.exclusionGroupAssignmentTarget']"
        },
        {
          "property": "Assignments",
          "childProperty": "deviceAndAppManagementAssignmentFilterDisplayName",
          "targetResource": "IntuneDeviceAndAppManagementAssignmentFilter",
          "targetKeyProperty": "DisplayName"
        }
      ],
      "resources": [
        "IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy",
        "IntuneAccountProtectionLocalUserGroupMembershipPolicy",
        "IntuneAccountProtectionPolicyWindows10",
        "IntuneAndroidManagedStoreAppConfiguration",
        "IntuneAntivirusExclusionsPolicyLinux",
        "IntuneAntivirusExclusionsPolicyMacOS",
        "IntuneAntivirusPolicyLinux",
        "IntuneAntivirusPolicyMacOS",
        "IntuneAntivirusPolicySecurityExperienceWindows10ConfigMgr",
        "IntuneAntivirusPolicyWindows10ConfigMgr",
        "IntuneAntivirusPolicyWindows10SettingCatalog",
        "IntuneAppAndBrowserIsolationPolicyWindows10",
        "IntuneAppAndBrowserIsolationPolicyWindows10ConfigMgr",
        "IntuneAppConfigurationDevicePolicy",
        "IntuneAppConfigurationPolicy",
        "IntuneAppControlForBusinessPolicyWindows10",
        "IntuneAppControlForBusinessPolicyWindows10V2",
        "IntuneApplicationControlPolicyWindows10",
        "IntuneAppProtectionPolicyAndroid",
        "IntuneAppProtectionPolicyiOS",
        "IntuneAppProtectionPolicyWindows10",
        "IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager",
        "IntuneCloudProvisioningPolicyWindows365",
        "IntuneCustomizationBrandingProfile",
        "IntuneDefenderGlobalExclusionsPolicyLinux",
        "IntuneDeviceCompliancePolicyAndroidDeviceOwner",
        "IntuneDeviceCompliancePolicyAndroidWorkProfile",
        "IntuneDeviceCompliancePolicyiOs",
        "IntuneDeviceCompliancePolicyMacOS",
        "IntuneDeviceCompliancePolicyWindows10",
        "IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10",
        "IntuneDeviceConfigurationCustomPolicyiOS",
        "IntuneDeviceConfigurationCustomPolicyWindows10",
        "IntuneDeviceConfigurationDefenderOnboardingPolicyWindows10",
        "IntuneDeviceConfigurationDeliveryOptimizationPolicyWindows10",
        "IntuneDeviceConfigurationDeliveryOptimizationPolicyWindows10V2",
        "IntuneDeviceConfigurationDomainJoinPolicyWindows10",
        "IntuneDeviceConfigurationEmailProfilePolicyWindows10",
        "IntuneDeviceConfigurationEndpointProtectionPolicyWindows10",
        "IntuneDeviceConfigurationFirmwareInterfacePolicyWindows10",
        "IntuneDeviceConfigurationHealthMonitoringPolicyWindows10",
        "IntuneDeviceConfigurationIdentityProtectionPolicyWindows10",
        "IntuneDeviceConfigurationImportedPfxCertificatePolicyWindows10",
        "IntuneDeviceConfigurationKioskPolicyWindows10",
        "IntuneDeviceConfigurationNetworkBoundaryPolicyWindows10",
        "IntuneDeviceConfigurationPkcsCertificatePolicyWindows10",
        "IntuneDeviceConfigurationPlatformScriptLinux",
        "IntuneDeviceConfigurationPlatformScriptMacOS",
        "IntuneDeviceConfigurationPlatformScriptWindows",
        "IntuneDeviceConfigurationPolicyAndroidDeviceOwner",
        "IntuneDeviceConfigurationPolicyAndroidOpenSourceProject",
        "IntuneDeviceConfigurationPolicyAndroidWorkProfile",
        "IntuneDeviceConfigurationPolicyiOS",
        "IntuneDeviceConfigurationPolicyMacOS",
        "IntuneDeviceConfigurationPolicyWindows10",
        "IntuneDeviceConfigurationSecureAssessmentPolicyWindows10",
        "IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10",
        "IntuneDeviceConfigurationTrustedCertificatePolicyWindows10",
        "IntuneDeviceConfigurationVpnPolicyWindows10",
        "IntuneDeviceConfigurationWindowsTeamPolicyWindows10",
        "IntuneDeviceConfigurationWiredNetworkPolicyWindows10",
        "IntuneDeviceControlPolicyWindows10",
        "IntuneDeviceEnrollmentLimitRestriction",
        "IntuneDeviceEnrollmentPlatformRestriction",
        "IntuneDeviceEnrollmentStatusPageWindows10",
        "IntuneDeviceFeaturesConfigurationPolicyIOS",
        "IntuneDiskEncryptionFileVaultPolicyMacOS",
        "IntuneDiskEncryptionMacOS",
        "IntuneDiskEncryptionPDEPolicyWindows10",
        "IntuneDiskEncryptionWindows10",
        "IntuneEndpointDetectionAndResponsePolicyLinux",
        "IntuneEndpointDetectionAndResponsePolicyMacOS",
        "IntuneEndpointDetectionAndResponsePolicyWindows10",
        "IntuneEpmElevationRulesPolicyWindows10",
        "IntuneEpmElevationSettingsPolicyWindows10",
        "IntuneExploitProtectionPolicyWindows10SettingCatalog",
        "IntuneFirewallPolicyWindows10",
        "IntuneFirewallRulesHyperVPolicyWindows10",
        "IntuneFirewallRulesPolicyWindows10",
        "IntuneFirewallRulesPolicyWindows10ConfigMgr",
        "IntuneManagedInstallerPolicyWindows10",
        "IntuneMobileAppsBuiltInStoreApp",
        "IntuneMobileAppsBundleMacOS",
        "IntuneMobileAppsDefenderForEndpointMacOS",
        "IntuneMobileAppsLobAppAndroid",
        "IntuneMobileAppsLobAppiOS",
        "IntuneMobileAppsLobAppMsiWindows10",
        "IntuneMobileAppsLobAppWindows10",
        "IntuneMobileAppsMacOSLobApp",
        "IntuneMobileAppsManagedGooglePlayApp",
        "IntuneMobileAppsMicrosoft365SuiteMacOS",
        "IntuneMobileAppsMicrosoftEdge",
        "IntuneMobileAppsMicrosoftStoreAppWindows10",
        "IntuneMobileAppsStoreApp",
        "IntuneMobileAppsSystemAppAndroid",
        "IntuneMobileAppsWebLink",
        "IntuneMobileAppsWin32AppWindows10",
        "IntuneMobileAppsWindowsOfficeSuiteApp",
        "IntunePolicySets",
        "IntuneRoleScopeTag",
        "IntuneSecurityBaselineDefenderForEndpoint",
        "IntuneSecurityBaselineHoloLens2Advanced",
        "IntuneSecurityBaselineHoloLens2Standard",
        "IntuneSecurityBaselineMicrosoft365AppsForEnterprise",
        "IntuneSecurityBaselineMicrosoftEdge",
        "IntuneSecurityBaselineWindows10",
        "IntuneSecurityBaselineWindows365",
        "IntuneSettingCatalogASRRulesPolicyWindows10",
        "IntuneSettingCatalogCustomPolicyWindows10",
        "IntuneTermsAndConditions",
        "IntuneTrustedRootCertificateAndroidDeviceOwner",
        "IntuneTrustedRootCertificateAndroidWork",
        "IntuneTrustedRootCertificateIOS",
        "IntuneUserSettingsPolicyWindows365",
        "IntuneVPNConfigurationPolicyAndroidDeviceOwner",
        "IntuneVPNConfigurationPolicyAndroidWork",
        "IntuneVPNConfigurationPolicyIOS",
        "IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner",
        "IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile",
        "IntuneWifiConfigurationPolicyAndroidForWork",
        "IntuneWifiConfigurationPolicyAndroidOpenSourceProject",
        "IntuneWifiConfigurationPolicyIOS",
        "IntuneWifiConfigurationPolicyMacOS",
        "IntuneWifiConfigurationPolicyWindows10",
        "IntuneWindowsAutopilotDeploymentProfileAzureADHybridJoined",
        "IntuneWindowsAutopilotDeploymentProfileAzureADJoined",
        "IntuneWindowsAutopilotDevicePreparationUserDrivenPolicy",
        "IntuneWindowsInformationProtectionPolicyWindows10MdmEnrolled",
        "IntuneWindowsUpdateForBusinessDriverUpdateProfileWindows10",
        "IntuneWindowsUpdateForBusinessFeatureUpdateProfileWindows10",
        "IntuneWindowsUpdateForBusinessHotpatchProfileWindows10",
        "IntuneWindowsUpdateForBusinessQualityUpdateProfileWindows10",
        "IntuneWindowsUpdateForBusinessRingUpdateProfileWindows10"
      ]
    },
    "IntuneDeviceRemediationAssignments": {
      "relations": [
        {
          "property": "Assignments.Assignment",
          "childProperty": "groupDisplayName",
          "targetResource": "AADGroup",
          "targetKeyProperty": "DisplayName"
        }
      ],
      "resources": [
        "IntuneDeviceRemediation"
      ]
    },
    "IntuneRootCertificateProfile": {
      "relations": [
        {
          "property": "RootCertificateDisplayName",
          "targetResource": "IntuneDeviceConfigurationTrustedCertificatePolicyWindows10",
          "targetKeyProperty": "DisplayName"
        },
        {
          "$ref": "#/templates/IntuneAssignments"
        }
      ],
      "resources": [
        "IntuneDeviceConfigurationSCEPCertificatePolicyWindows10"
      ]
    }
  }
}