Bylaw

Gallery › Security Center › Azure built-in policies

Configure Azure Defender to be enabled on SQL Servers and SQL Managed Instances

Converted Initiative Version 3.0.0

Enable Azure Defender on your SQL Servers and SQL Managed Instances to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.

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

Azure Policy JSONASC_AzureDefenderForSql.json · 38 lines
{
  "properties": {
    "displayName": "Configure Azure Defender to be enabled on SQL Servers and SQL Managed Instances",
    "policyType": "BuiltIn",
    "description": "Enable Azure Defender on your SQL Servers and SQL Managed Instances to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.",
    "metadata": {
      "version": "3.0.0",
      "category": "Security Center"
    },
    "version": "3.0.0",
    "parameters": {},
    "policyDefinitions": [
      {
        "policyDefinitionReferenceId": "deployThreatDetectionOnSqlServers",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/36d49e87-48c4-4f2e-beed-ba4ed02b71f5",
        "definitionVersion": "2.*.*",
        "parameters": {}
      },
      {
        "policyDefinitionReferenceId": "deployThreatDetectionOnSqlManagedInstances",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c5a62eb0-c65a-4220-8a4d-f70dd4ca95dd",
        "definitionVersion": "2.*.*",
        "parameters": {}
      },
      {
        "policyDefinitionReferenceId": "deployThreatDetectionOnSynapseWorkspaces",
        "policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/951c1558-50a5-4ca3-abb6-a93e3e2367a6",
        "definitionVersion": "1.*.*",
        "parameters": {}
      }
    ],
    "versions": [
      "3.0.0"
    ]
  },
  "id": "/providers/Microsoft.Authorization/policySetDefinitions/9cb3cc7a-b39b-4b82-bc89-e5a5d9ff7b97",
  "name": "9cb3cc7a-b39b-4b82-bc89-e5a5d9ff7b97"
}
Bylaw9cb3cc7a-b39b-4b82-bc89-e5a5d9ff7b97.bylaw.ps1 · 29 lines
# Converted from ASC_AzureDefenderForSql.json by ConvertTo-Bylaw.
Initiative '9cb3cc7a-b39b-4b82-bc89-e5a5d9ff7b97' {

    Properties @{
        DisplayName   = 'Configure Azure Defender to be enabled on SQL Servers and SQL Managed Instances'
        Description   = 'Enable Azure Defender on your SQL Servers and SQL Managed Instances to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.'
        Version       = '3.0.0'
        Category      = 'Security Center'
        PolicyVersion = '3.0.0'
    }

    PolicyDefinition @{
        Id          = '36d49e87-48c4-4f2e-beed-ba4ed02b71f5'
        ReferenceId = 'deployThreatDetectionOnSqlServers'
        Version     = '2.*.*'
    }

    PolicyDefinition @{
        Id          = 'c5a62eb0-c65a-4220-8a4d-f70dd4ca95dd'
        ReferenceId = 'deployThreatDetectionOnSqlManagedInstances'
        Version     = '2.*.*'
    }

    PolicyDefinition @{
        Id          = '951c1558-50a5-4ca3-abb6-a93e3e2367a6'
        ReferenceId = 'deployThreatDetectionOnSynapseWorkspaces'
        Version     = '1.*.*'
    }
}

Members (3)

Source: built-in-policies/policySetDefinitions/Security Center/ASC_AzureDefenderForSql.json in Azure/azure-policy, under the MIT licence.