Gallery › Security Center › Azure built-in policies
[Preview]: Deploy Microsoft Defender for Endpoint agent
Converted Initiative Version 1.0.0-preview Preview
Deploy Microsoft Defender for Endpoint agent on applicable images.
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONASC_MicrosoftDefenderForEndpointAgent.json · 114 lines
{
"properties": {
"displayName": "[Preview]: Deploy Microsoft Defender for Endpoint agent",
"policyType": "BuiltIn",
"description": "Deploy Microsoft Defender for Endpoint agent on applicable images.",
"metadata": {
"category": "Security Center",
"version": "1.0.0-preview",
"preview": true
},
"version": "1.0.0-preview",
"parameters": {
"microsoftDefenderForEndpointWindowsVmAgentDeployEffect": {
"type": "string",
"defaultValue": "DeployIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"DeployIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Deploy Microsoft Defender for Endpoint agent on Windows virtual machines",
"description": "Enable or disable deploy Microsoft Defender for Endpoint agent on Windows virtual machines."
}
},
"microsoftDefenderForEndpointLinuxVmAgentDeployEffect": {
"type": "string",
"defaultValue": "DeployIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"DeployIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Deploy Microsoft Defender for Endpoint agent on Linux virtual machines",
"description": "Enable or disable deploy Microsoft Defender for Endpoint agent on Linux virtual machines."
}
},
"microsoftDefenderForEndpointWindowsArcAgentDeployEffect": {
"type": "string",
"defaultValue": "DeployIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"DeployIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Deploy Microsoft Defender for Endpoint agent on hybrid Windows virtual machines",
"description": "Enable or disable deploy Microsoft Defender for Endpoint agent on hybrid Windows virtual machines."
}
},
"microsoftDefenderForEndpointLinuxArcAgentDeployEffect": {
"type": "string",
"defaultValue": "DeployIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"DeployIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Deploy Microsoft Defender for Endpoint agent on hybrid Linux virtual machines",
"description": "Enable or disable deploy Microsoft Defender for Endpoint agent on hybrid Linux virtual machines."
}
}
},
"policyDefinitions": [
{
"policyDefinitionReferenceId": "microsoftDefenderForEndpointWindowsAgentDeploy",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1ec9c2c2-6d64-656d-6465-3ec3309b8579",
"definitionVersion": "2.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('microsoftDefenderForEndpointWindowsVmAgentDeployEffect')]"
}
}
},
{
"policyDefinitionReferenceId": "microsoftDefenderForEndpointLinuxAgentDeploy",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d30025d0-6d64-656d-6465-67688881b632",
"definitionVersion": "3.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('microsoftDefenderForEndpointLinuxVmAgentDeployEffect')]"
}
}
},
{
"policyDefinitionReferenceId": "microsoftDefenderForEndpointWindowsArcAgentDeploy",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/37c043a6-6d64-656d-6465-b362dfeb354a",
"definitionVersion": "2.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('microsoftDefenderForEndpointWindowsArcAgentDeployEffect')]"
}
}
},
{
"policyDefinitionReferenceId": "microsoftDefenderForEndpointLinuxArcAgentDeploy",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/4eb909e7-6d64-656d-6465-2eeb297a1625",
"definitionVersion": "2.*.*-preview",
"parameters": {
"effect": {
"value": "[parameters('microsoftDefenderForEndpointLinuxArcAgentDeployEffect')]"
}
}
}
],
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/e20d08c5-6d64-656d-6465-ce9e37fd0ebc",
"name": "e20d08c5-6d64-656d-6465-ce9e37fd0ebc"
}Bylawe20d08c5-6d64-656d-6465-ce9e37fd0ebc.bylaw.ps1 · 77 lines
# Converted from ASC_MicrosoftDefenderForEndpointAgent.json by ConvertTo-Bylaw.
Initiative 'e20d08c5-6d64-656d-6465-ce9e37fd0ebc' {
Properties @{
DisplayName = '[Preview]: Deploy Microsoft Defender for Endpoint agent'
Description = 'Deploy Microsoft Defender for Endpoint agent on applicable images.'
Category = 'Security Center'
Version = '1.0.0-preview'
Preview = $true
PolicyVersion = '1.0.0-preview'
}
Parameter MicrosoftDefenderForEndpointWindowsVmAgentDeployEffect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'DeployIfNotExists', 'Disabled')
Default = 'DeployIfNotExists'
DisplayName = 'Deploy Microsoft Defender for Endpoint agent on Windows virtual machines'
Description = 'Enable or disable deploy Microsoft Defender for Endpoint agent on Windows virtual machines.'
}
Parameter MicrosoftDefenderForEndpointLinuxVmAgentDeployEffect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'DeployIfNotExists', 'Disabled')
Default = 'DeployIfNotExists'
DisplayName = 'Deploy Microsoft Defender for Endpoint agent on Linux virtual machines'
Description = 'Enable or disable deploy Microsoft Defender for Endpoint agent on Linux virtual machines.'
}
Parameter MicrosoftDefenderForEndpointWindowsArcAgentDeployEffect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'DeployIfNotExists', 'Disabled')
Default = 'DeployIfNotExists'
DisplayName = 'Deploy Microsoft Defender for Endpoint agent on hybrid Windows virtual machines'
Description = 'Enable or disable deploy Microsoft Defender for Endpoint agent on hybrid Windows virtual machines.'
}
Parameter MicrosoftDefenderForEndpointLinuxArcAgentDeployEffect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'DeployIfNotExists', 'Disabled')
Default = 'DeployIfNotExists'
DisplayName = 'Deploy Microsoft Defender for Endpoint agent on hybrid Linux virtual machines'
Description = 'Enable or disable deploy Microsoft Defender for Endpoint agent on hybrid Linux virtual machines.'
}
PolicyDefinition @{
Id = '1ec9c2c2-6d64-656d-6465-3ec3309b8579'
ReferenceId = 'microsoftDefenderForEndpointWindowsAgentDeploy'
Version = '2.*.*-preview'
Parameters = @{
effect = (Param MicrosoftDefenderForEndpointWindowsVmAgentDeployEffect)
}
}
PolicyDefinition @{
Id = 'd30025d0-6d64-656d-6465-67688881b632'
ReferenceId = 'microsoftDefenderForEndpointLinuxAgentDeploy'
Version = '3.*.*-preview'
Parameters = @{
effect = (Param MicrosoftDefenderForEndpointLinuxVmAgentDeployEffect)
}
}
PolicyDefinition @{
Id = '37c043a6-6d64-656d-6465-b362dfeb354a'
ReferenceId = 'microsoftDefenderForEndpointWindowsArcAgentDeploy'
Version = '2.*.*-preview'
Parameters = @{
effect = (Param MicrosoftDefenderForEndpointWindowsArcAgentDeployEffect)
}
}
PolicyDefinition @{
Id = '4eb909e7-6d64-656d-6465-2eeb297a1625'
ReferenceId = 'microsoftDefenderForEndpointLinuxArcAgentDeploy'
Version = '2.*.*-preview'
Parameters = @{
effect = (Param MicrosoftDefenderForEndpointLinuxArcAgentDeployEffect)
}
}
}Members (4)
- [Preview]: Deploy Microsoft Defender for Endpoint agent on Windows virtual machines
- [Preview]: Deploy Microsoft Defender for Endpoint agent on Linux virtual machines
- [Preview]: Deploy Microsoft Defender for Endpoint agent on Windows Azure Arc machines
- [Preview]: Deploy Microsoft Defender for Endpoint agent on Linux hybrid machines
Source: built-in-policies/policySetDefinitions/Security Center/ASC_MicrosoftDefenderForEndpointAgent.json in Azure/azure-policy, under the MIT licence.
Bylaw