Gallery › Security Center › Azure built-in policies
[Deprecated]: Azure Security agent should be installed on your Linux Arc machines
Converted Policy AuditIfNotExists Disabled Mode Indexed Version 1.1.0-deprecated Deprecated
Install the Azure Security agent on your Linux Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONASC_AzureSecurityLinuxAgent_Arc_AINE.json · 70 lines
{
"properties": {
"displayName": "[Deprecated]: Azure Security agent should be installed on your Linux Arc machines",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Install the Azure Security agent on your Linux Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.",
"metadata": {
"category": "Security Center",
"version": "1.1.0-deprecated",
"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",
"equals": "Microsoft.HybridCompute/machines"
},
{
"field": "Microsoft.HybridCompute/imageOffer",
"like": "linux*"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.HybridCompute/machines/extensions",
"existenceCondition": {
"allOf": [
{
"field": "Microsoft.HybridCompute/machines/extensions/type",
"equals": "AzureSecurityLinuxAgent"
},
{
"field": "Microsoft.HybridCompute/machines/extensions/Publisher",
"equals": "Microsoft.Azure.Security.Monitoring"
},
{
"field": "Microsoft.HybridCompute/machines/extensions/provisioningState",
"equals": "Succeeded"
}
]
}
}
}
},
"versions": [
"1.1.0",
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/1f300abb-f5a0-41c3-a163-91bd3ed35de7",
"name": "1f300abb-f5a0-41c3-a163-91bd3ed35de7"
}Bylaw1f300abb-f5a0-41c3-a163-91bd3ed35de7.bylaw.ps1 · 36 lines
# Converted from ASC_AzureSecurityLinuxAgent_Arc_AINE.json by ConvertTo-Bylaw.
Policy '1f300abb-f5a0-41c3-a163-91bd3ed35de7' {
Properties @{
DisplayName = '[Deprecated]: Azure Security agent should be installed on your Linux Arc machines'
Description = 'Install the Azure Security agent on your Linux Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.'
Category = 'Security Center'
Version = '1.1.0-deprecated'
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.HybridCompute/machines' {
Require 'imageOffer is not like linux*' {
Field 'Microsoft.HybridCompute/imageOffer' | Must -Not -BeLike 'linux*' -IfPresent
}
}
AuditIfNotExists 'Microsoft.HybridCompute/machines/extensions' -Effect (Param Effect) {
Require 'type, publisher and provisioningState are as required' {
Field 'Microsoft.HybridCompute/machines/extensions/type' | Must -Be 'AzureSecurityLinuxAgent'
Field publisher | Must -Be 'Microsoft.Azure.Security.Monitoring'
Field provisioningState | Must -Be 'Succeeded'
}
}
}Source: built-in-policies/policyDefinitions/Security Center/ASC_AzureSecurityLinuxAgent_Arc_AINE.json in Azure/azure-policy, under the MIT licence.
Bylaw