Bylaw

Gallery › Monitoring › Azure built-in policies

[Deprecated]: Configure machines to automatically install the Azure Monitor and Azure Security agents on virtual machines

Converted Initiative Version 3.0.1-deprecated Deprecated

This policy initiative is deprecated as part of Microsoft Defender for Cloud updated strategy. As part of this strategy, Azure Monitor agent is no longer required to receive Defender for Servers security features, but is required for Defender for SQL Server on machines. For more information visit: https://aka.ms/MdcAgentStrategy. Configure machines to automatically install the Azure Monitor and Azure Security agents.

ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.

Azure Policy JSONPrerequisites.json · 55 lines
{
  "properties": {
    "displayName": "[Deprecated]: Configure machines to automatically install the Azure Monitor and Azure Security agents on virtual machines",
    "policyType": "BuiltIn",
    "description": "This policy initiative is deprecated as part of Microsoft Defender for Cloud updated strategy. As part of this strategy, Azure Monitor agent is no longer required to receive Defender for Servers security features, but is required for Defender for SQL Server on machines. For more information visit: https://aka.ms/MdcAgentStrategy. Configure machines to automatically install the Azure Monitor and Azure Security agents.",
    "metadata": {
      "category": "Monitoring",
      "version": "3.0.1-deprecated",
      "deprecated": true
    },
    "version": "3.0.1",
    "policyDefinitions": [
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/17b3de92-f710-4cf4-aa55-0e7859f1ed7b",
        "definitionVersion": "6.*.*-preview",
        "policyDefinitionReferenceId": "Prerequisite_AddSystemIdentity"
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a4034bc6-ae50-406d-bf76-50f4ee5a7811",
        "definitionVersion": "3.*.*",
        "policyDefinitionReferenceId": "Prerequisite_DeployExtensionLinux"
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ca817e41-e85a-4783-bc7f-dc532d36235e",
        "definitionVersion": "4.*.*",
        "policyDefinitionReferenceId": "Prerequisite_DeployExtensionWindows"
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5f8eb305-9c9f-4abe-9bb0-df220d9faba2",
        "definitionVersion": "7.*.*-preview",
        "policyDefinitionReferenceId": "ASC_DeployAzureSecurityLinuxAgent"
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1537496a-b1e8-482b-a06a-1cc2415cdc7b",
        "definitionVersion": "5.*.*-preview",
        "policyDefinitionReferenceId": "ASC_DeployAzureSecurityWindowsAgent"
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/8b5ad9ab-3d44-4a6e-9ac3-75b04ea5fd28",
        "definitionVersion": "5.*.*-preview",
        "policyDefinitionReferenceId": "ASC_AMA_DefaultPipeline_Deploy"
      },
      {
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/a2ea54a3-9707-45e3-8230-bbda8309d17e",
        "definitionVersion": "3.*.*-preview",
        "policyDefinitionReferenceId": "ASC_AMA_DefaultPipeline_DCRA_Deploy"
      }
    ],
    "versions": [
      "3.0.1"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/a15f3269-2e10-458c-87a4-d5989e678a73",
  "name": "a15f3269-2e10-458c-87a4-d5989e678a73"
}
Bylawa15f3269-2e10-458c-87a4-d5989e678a73.bylaw.ps1 · 54 lines
# Converted from Prerequisites.json by ConvertTo-Bylaw.
Initiative 'a15f3269-2e10-458c-87a4-d5989e678a73' {

    Properties @{
        DisplayName   = '[Deprecated]: Configure machines to automatically install the Azure Monitor and Azure Security agents on virtual machines'
        Description   = 'This policy initiative is deprecated as part of Microsoft Defender for Cloud updated strategy. As part of this strategy, Azure Monitor agent is no longer required to receive Defender for Servers security features, but is required for Defender for SQL Server on machines. For more information visit: https://aka.ms/MdcAgentStrategy. Configure machines to automatically install the Azure Monitor and Azure Security agents.'
        Category      = 'Monitoring'
        Version       = '3.0.1-deprecated'
        Deprecated    = $true
        PolicyVersion = '3.0.1'
    }

    PolicyDefinition @{
        Id          = '17b3de92-f710-4cf4-aa55-0e7859f1ed7b'
        ReferenceId = 'Prerequisite_AddSystemIdentity'
        Version     = '6.*.*-preview'
    }

    PolicyDefinition @{
        Id          = 'a4034bc6-ae50-406d-bf76-50f4ee5a7811'
        ReferenceId = 'Prerequisite_DeployExtensionLinux'
        Version     = '3.*.*'
    }

    PolicyDefinition @{
        Id          = 'ca817e41-e85a-4783-bc7f-dc532d36235e'
        ReferenceId = 'Prerequisite_DeployExtensionWindows'
        Version     = '4.*.*'
    }

    PolicyDefinition @{
        Id          = '5f8eb305-9c9f-4abe-9bb0-df220d9faba2'
        ReferenceId = 'ASC_DeployAzureSecurityLinuxAgent'
        Version     = '7.*.*-preview'
    }

    PolicyDefinition @{
        Id          = '1537496a-b1e8-482b-a06a-1cc2415cdc7b'
        ReferenceId = 'ASC_DeployAzureSecurityWindowsAgent'
        Version     = '5.*.*-preview'
    }

    PolicyDefinition @{
        Id          = '8b5ad9ab-3d44-4a6e-9ac3-75b04ea5fd28'
        ReferenceId = 'ASC_AMA_DefaultPipeline_Deploy'
        Version     = '5.*.*-preview'
    }

    PolicyDefinition @{
        Id          = 'a2ea54a3-9707-45e3-8230-bbda8309d17e'
        ReferenceId = 'ASC_AMA_DefaultPipeline_DCRA_Deploy'
        Version     = '3.*.*-preview'
    }
}

Members (7)

Source: built-in-policies/policySetDefinitions/Monitoring/Prerequisites.json in Azure/azure-policy, under the MIT licence.