Gallery › Security Center › Azure built-in policies
Configure Microsoft Defender for Endpoint integration settings with Microsoft Defender for Cloud (WDATP)
Converted Policy DeployIfNotExists Disabled Mode All Version 1.0.0
Configures the Microsoft Defender for Endpoint integration settings, within Microsoft Defender for Cloud (also known as WDATP), for Windows downlevel machines onboarded to MDE via MMA, and auto provisioning of MDE on Windows Server 2019 , Windows Virtual Desktop and above. Must be turned on in order for the other settings (WDATP_UNIFIED, etc.) to work. See: https://learn.microsoft.com/azure/defender-for-cloud/integration-defender-for-endpoint for more information.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "Configure Microsoft Defender for Endpoint integration settings with Microsoft Defender for Cloud (WDATP)",
"policyType": "BuiltIn",
"mode": "All",
"description": "Configures the Microsoft Defender for Endpoint integration settings, within Microsoft Defender for Cloud (also known as WDATP), for Windows downlevel machines onboarded to MDE via MMA, and auto provisioning of MDE on Windows Server 2019 , Windows Virtual Desktop and above. Must be turned on in order for the other settings (WDATP_UNIFIED, etc.) to work. See: https://learn.microsoft.com/azure/defender-for-cloud/integration-defender-for-endpoint for more information.",
"metadata": {
"version": "1.0.0",
"category": "Security Center"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"DeployIfNotExists",
"Disabled"
],
"defaultValue": "DeployIfNotExists"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Resources/subscriptions"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/settings",
"name": "WDATP",
"deploymentScope": "subscription",
"existenceScope": "subscription",
"existenceCondition": {
"field": "Microsoft.Security/settings/DataExportSetting.enabled",
"equals": "true"
},
"roleDefinitionIds": [
"/providers/Microsoft.Authorization/roleDefinitions/fb1c8493-542b-48eb-b624-b4c8fea62acd"
],
"deployment": {
"location": "northeurope",
"properties": {
"mode": "incremental",
"parameters": {},
"template": {
"$schema": "http://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Security/settings",
"apiVersion": "2022-05-01",
"name": "WDATP",
"kind": "DataExportSettings",
"properties": {
"enabled": "true"
}
}
],
"outputs": {}
}
}
}
}
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/da56d295-2889-41ce-a4cd-6f50fb93aa68",
"name": "da56d295-2889-41ce-a4cd-6f50fb93aa68"
}# Converted from MDC_MDE_WDATP_DINE.json by ConvertTo-Bylaw.
Policy 'da56d295-2889-41ce-a4cd-6f50fb93aa68' {
Properties @{
DisplayName = 'Configure Microsoft Defender for Endpoint integration settings with Microsoft Defender for Cloud (WDATP)'
Description = 'Configures the Microsoft Defender for Endpoint integration settings, within Microsoft Defender for Cloud (also known as WDATP), for Windows downlevel machines onboarded to MDE via MMA, and auto provisioning of MDE on Windows Server 2019 , Windows Virtual Desktop and above. Must be turned on in order for the other settings (WDATP_UNIFIED, etc.) to work. See: https://learn.microsoft.com/azure/defender-for-cloud/integration-defender-for-endpoint for more information.'
Version = '1.0.0'
Category = 'Security Center'
PolicyVersion = '1.0.0'
Mode = 'All'
}
Parameter Effect @{
AllowedValues = @('DeployIfNotExists', 'Disabled')
Default = 'DeployIfNotExists'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Resources/subscriptions'
DeployIfNotExists 'Microsoft.Security/settings' -Role 'Security Admin' -Name 'WDATP' -ExistenceScope Subscription -Effect (Param Effect) {
Require 'DataExportSetting.enabled is true' {
Field DataExportSetting.enabled | Must -Be 'true'
}
Deployment @{
TemplateFile = './templates/da56d295-2889-41ce-a4cd-6f50fb93aa68.json'
Scope = 'Subscription'
Location = 'northeurope'
}
}
}Its deployment templates are written beside it:
templates/da56d295-2889-41ce-a4cd-6f50fb93aa68.json
Source: built-in-policies/policyDefinitions/Security Center/MDC_MDE_WDATP_DINE.json in Azure/azure-policy, under the MIT licence.
Bylaw