Gallery › Security Center › Azure built-in policies
[Deprecated]: Monitor missing Endpoint Protection in Azure Security Center
Converted Policy AuditIfNotExists Disabled Mode All Version 3.1.0-deprecated Deprecated
Servers without an installed Endpoint Protection agent will be monitored by Azure Security Center as recommendations
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONASC_MissingEndpointProtection_Audit.json · 57 lines
{
"properties": {
"displayName": "[Deprecated]: Monitor missing Endpoint Protection in Azure Security Center",
"policyType": "BuiltIn",
"mode": "All",
"description": "Servers without an installed Endpoint Protection agent will be monitored by Azure Security Center as recommendations",
"metadata": {
"version": "3.1.0-deprecated",
"category": "Security Center",
"deprecated": true
},
"version": "3.1.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Disabled",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"field": "type",
"in": [
"Microsoft.Compute/virtualMachines",
"Microsoft.ClassicCompute/virtualMachines"
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/assessments",
"name": "83f577bd-a1b6-b7e1-0891-12ca19d1e6df",
"existenceCondition": {
"field": "Microsoft.Security/assessments/status.code",
"in": [
"NotApplicable",
"Healthy"
]
}
}
}
},
"versions": [
"3.1.0",
"3.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/af6cd1bd-1635-48cb-bde7-5b15693900b9",
"name": "af6cd1bd-1635-48cb-bde7-5b15693900b9"
}Bylawaf6cd1bd-1635-48cb-bde7-5b15693900b9.bylaw.ps1 · 34 lines
# Converted from ASC_MissingEndpointProtection_Audit.json by ConvertTo-Bylaw.
Policy 'af6cd1bd-1635-48cb-bde7-5b15693900b9' {
Properties @{
DisplayName = '[Deprecated]: Monitor missing Endpoint Protection in Azure Security Center'
Description = 'Servers without an installed Endpoint Protection agent will be monitored by Azure Security Center as recommendations'
Version = '3.1.0-deprecated'
Category = 'Security Center'
Deprecated = $true
PolicyVersion = '3.1.0'
Mode = 'All'
}
Parameter Effect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'Disabled')
Default = 'Disabled'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource * {
Require 'type is not one of 2 values' {
Field type | Must -Not -BeIn @('Microsoft.Compute/virtualMachines', 'Microsoft.ClassicCompute/virtualMachines') -IfPresent
}
}
AuditIfNotExists 'Microsoft.Security/assessments' -Name '83f577bd-a1b6-b7e1-0891-12ca19d1e6df' -Effect (Param Effect) {
Require 'status.code is one of 2 values' {
Field status.code | Must -BeIn @('NotApplicable', 'Healthy')
}
}
}Source: built-in-policies/policyDefinitions/Security Center/ASC_MissingEndpointProtection_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw