Gallery › Security Center › Azure built-in policies
[Deprecated]: Endpoint protection should be installed on your machines
Converted Policy AuditIfNotExists Disabled Mode All Version 1.1.0-deprecated Deprecated
To protect your machines from threats and vulnerabilities, install a supported endpoint protection solution.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONASC_EndpointProtectionShouldBeInstalledOnYourMachines_Audit.json · 62 lines
{
"properties": {
"displayName": "[Deprecated]: Endpoint protection should be installed on your machines",
"policyType": "BuiltIn",
"mode": "All",
"description": "To protect your machines from threats and vulnerabilities, install a supported endpoint protection solution.",
"metadata": {
"version": "1.1.0-deprecated",
"category": "Security Center",
"deprecated": true
},
"version": "1.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": {
"allOf": [
{
"field": "type",
"in": [
"Microsoft.Compute/virtualMachines",
"Microsoft.ClassicCompute/virtualMachines",
"Microsoft.HybridCompute/machines"
]
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/assessments",
"name": "4fb67663-9ab9-475d-b026-8c544cced439",
"existenceCondition": {
"field": "Microsoft.Security/assessments/status.code",
"in": [
"NotApplicable",
"Healthy"
]
}
}
}
},
"versions": [
"1.1.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/1f7c564c-0a90-4d44-b7e1-9d456cffaee8",
"name": "1f7c564c-0a90-4d44-b7e1-9d456cffaee8"
}Bylaw1f7c564c-0a90-4d44-b7e1-9d456cffaee8.bylaw.ps1 · 34 lines
# Converted from ASC_EndpointProtectionShouldBeInstalledOnYourMachines_Audit.json by ConvertTo-Bylaw.
Policy '1f7c564c-0a90-4d44-b7e1-9d456cffaee8' {
Properties @{
DisplayName = '[Deprecated]: Endpoint protection should be installed on your machines'
Description = 'To protect your machines from threats and vulnerabilities, install a supported endpoint protection solution.'
Version = '1.1.0-deprecated'
Category = 'Security Center'
Deprecated = $true
PolicyVersion = '1.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 3 values' {
Field type | Must -Not -BeIn @('Microsoft.Compute/virtualMachines', 'Microsoft.ClassicCompute/virtualMachines', 'Microsoft.HybridCompute/machines') -IfPresent
}
}
AuditIfNotExists 'Microsoft.Security/assessments' -Name '4fb67663-9ab9-475d-b026-8c544cced439' -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_EndpointProtectionShouldBeInstalledOnYourMachines_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw