Gallery › Security Center › Azure built-in policies
[Deprecated]: Cloud Services (extended support) role instances should have an endpoint protection solution installed
Converted Policy AuditIfNotExists Disabled Mode Indexed Version 1.1.0-deprecated Deprecated
Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONASC_CsesMissingEndpointProtection_Audit.json · 54 lines
{
"properties": {
"displayName": "[Deprecated]: Cloud Services (extended support) role instances should have an endpoint protection solution installed",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.",
"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": {
"field": "type",
"equals": "Microsoft.Compute/cloudServices"
},
"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": [
"1.1.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/1e378679-f122-4a96-a739-a7729c46e1aa",
"name": "1e378679-f122-4a96-a739-a7729c46e1aa"
}Bylaw1e378679-f122-4a96-a739-a7729c46e1aa.bylaw.ps1 · 29 lines
# Converted from ASC_CsesMissingEndpointProtection_Audit.json by ConvertTo-Bylaw.
Policy '1e378679-f122-4a96-a739-a7729c46e1aa' {
Properties @{
DisplayName = '[Deprecated]: Cloud Services (extended support) role instances should have an endpoint protection solution installed'
Description = 'Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.'
Version = '1.1.0-deprecated'
Category = 'Security Center'
Deprecated = $true
PolicyVersion = '1.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/cloudServices'
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_CsesMissingEndpointProtection_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw