Gallery › Security Center › Azure built-in policies
[Deprecated]: Endpoint protection solution should be installed on virtual machine scale sets
Converted Policy AuditIfNotExists Disabled Mode Indexed Version 3.1.0-deprecated Deprecated
Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONASC_VmssMissingEndpointProtection_Audit.json · 54 lines
{
"properties": {
"displayName": "[Deprecated]: Endpoint protection solution should be installed on virtual machine scale sets",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.",
"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",
"equals": "Microsoft.Compute/virtualMachineScaleSets"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/assessments",
"name": "e71020c2-860c-3235-cd39-04f3f8c936d2",
"existenceCondition": {
"field": "Microsoft.Security/assessments/status.code",
"in": [
"NotApplicable",
"Healthy"
]
}
}
}
},
"versions": [
"3.1.0",
"3.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/26a828e1-e88f-464e-bbb3-c134a282b9de",
"name": "26a828e1-e88f-464e-bbb3-c134a282b9de"
}Bylaw26a828e1-e88f-464e-bbb3-c134a282b9de.bylaw.ps1 · 29 lines
# Converted from ASC_VmssMissingEndpointProtection_Audit.json by ConvertTo-Bylaw.
Policy '26a828e1-e88f-464e-bbb3-c134a282b9de' {
Properties @{
DisplayName = '[Deprecated]: Endpoint protection solution should be installed on virtual machine scale sets'
Description = 'Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.'
Version = '3.1.0-deprecated'
Category = 'Security Center'
Deprecated = $true
PolicyVersion = '3.1.0'
Mode = 'Indexed'
}
Parameter Effect @{
Type = 'string'
AllowedValues = @('AuditIfNotExists', 'Disabled')
Default = 'Disabled'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Compute/virtualMachineScaleSets'
AuditIfNotExists 'Microsoft.Security/assessments' -Name 'e71020c2-860c-3235-cd39-04f3f8c936d2' -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_VmssMissingEndpointProtection_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw