Gallery › Security Center › Azure built-in policies
Configure SQL VMs and Arc-enabled SQL Servers to install Microsoft Defender extension
Converted Initiative Version 1.0.0
Microsoft Defender for SQL collects events from the agents and uses them to provide security alerts and tailored hardening tasks (recommendations).
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONMDC_DfSQL_Extension.json · 35 lines
{
"properties": {
"displayName": "Configure SQL VMs and Arc-enabled SQL Servers to install Microsoft Defender extension",
"policyType": "BuiltIn",
"description": "Microsoft Defender for SQL collects events from the agents and uses them to provide security alerts and tailored hardening tasks (recommendations).",
"version": "1.0.0",
"metadata": {
"category": "Security Center",
"version": "1.0.0"
},
"parameters": {},
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/813e1e44-914e-436d-a2ab-84c4529a6084",
"policyDefinitionReferenceId": "MDC_DfSQL_SystemAssignedIdentity_VM",
"definitionVersion": "1.*.*"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9345b7fb-67c5-496c-9f12-eaa74f676875",
"policyDefinitionReferenceId": "MDC_DfSQL_DeployMicrosoftDefenderForSQLWindowsAgent_VM",
"definitionVersion": "1.*.*"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/65503269-6a54-4553-8a28-0065a8e6d929",
"policyDefinitionReferenceId": "MDC_DfSQL_DeployMicrosoftDefenderForSQLWindowsAgent_Arc",
"definitionVersion": "1.*.*"
}
],
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/c1529623-9fc2-45bc-b84b-b14cd0b7484e",
"name": "c1529623-9fc2-45bc-b84b-b14cd0b7484e"
}Bylawc1529623-9fc2-45bc-b84b-b14cd0b7484e.bylaw.ps1 · 29 lines
# Converted from MDC_DfSQL_Extension.json by ConvertTo-Bylaw.
Initiative 'c1529623-9fc2-45bc-b84b-b14cd0b7484e' {
Properties @{
DisplayName = 'Configure SQL VMs and Arc-enabled SQL Servers to install Microsoft Defender extension'
Description = 'Microsoft Defender for SQL collects events from the agents and uses them to provide security alerts and tailored hardening tasks (recommendations).'
Category = 'Security Center'
Version = '1.0.0'
PolicyVersion = '1.0.0'
}
PolicyDefinition @{
Id = '813e1e44-914e-436d-a2ab-84c4529a6084'
ReferenceId = 'MDC_DfSQL_SystemAssignedIdentity_VM'
Version = '1.*.*'
}
PolicyDefinition @{
Id = '9345b7fb-67c5-496c-9f12-eaa74f676875'
ReferenceId = 'MDC_DfSQL_DeployMicrosoftDefenderForSQLWindowsAgent_VM'
Version = '1.*.*'
}
PolicyDefinition @{
Id = '65503269-6a54-4553-8a28-0065a8e6d929'
ReferenceId = 'MDC_DfSQL_DeployMicrosoftDefenderForSQLWindowsAgent_Arc'
Version = '1.*.*'
}
}Members (3)
- Assign System Assigned identity to SQL Virtual Machines
- Configure SQL Virtual Machines to automatically install Microsoft Defender for SQL extension
- Configure Arc-enabled SQL Servers to automatically install Microsoft Defender for SQL
Source: built-in-policies/policySetDefinitions/Security Center/MDC_DfSQL_Extension.json in Azure/azure-policy, under the MIT licence.
Bylaw