Gallery › Regulatory Compliance › Azure built-in policies
Turn on sensors for endpoint security solution
Converted Policy Disabled Manual Mode All Version 1.1.0
CMA_0514 - Turn on sensors for endpoint security solution
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONCMA_0514.json · 45 lines
{
"properties": {
"displayName": "Turn on sensors for endpoint security solution",
"policyType": "BuiltIn",
"mode": "All",
"description": "CMA_0514 - Turn on sensors for endpoint security solution",
"metadata": {
"version": "1.1.0",
"category": "Regulatory Compliance",
"additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/CMA_0514"
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Manual",
"Disabled"
],
"defaultValue": "Manual"
}
},
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Resources/subscriptions"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"defaultState": "Unknown"
}
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/5fc24b95-53f7-0ed1-2330-701b539b97fe",
"name": "5fc24b95-53f7-0ed1-2330-701b539b97fe"
}Bylaw5fc24b95-53f7-0ed1-2330-701b539b97fe.bylaw.ps1 · 24 lines
# Converted from CMA_0514.json by ConvertTo-Bylaw.
Policy '5fc24b95-53f7-0ed1-2330-701b539b97fe' {
Properties @{
DisplayName = 'Turn on sensors for endpoint security solution'
Description = 'CMA_0514 - Turn on sensors for endpoint security solution'
Version = '1.1.0'
Category = 'Regulatory Compliance'
PolicyVersion = '1.1.0'
Mode = 'All'
Metadata = [ordered]@{ additionalMetadataId = '/providers/Microsoft.PolicyInsights/policyMetadata/CMA_0514' }
}
Parameter Effect @{
AllowedValues = @('Manual', 'Disabled')
Default = 'Manual'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.Resources/subscriptions'
Manual -DefaultState Unknown -Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Regulatory Compliance/CMA_0514.json in Azure/azure-policy, under the MIT licence.
Bylaw