Enable Defender profile
March 21, 2025 ยท View on GitHub
SYNOPSIS
Enable the Defender profile with Azure Kubernetes Service (AKS) cluster.
DESCRIPTION
To collect and provide data plane protections of Microsoft Defender for Containers some additional daemon set and deployments needs to be deployed to the AKS clusters.
These components are installed when the Defender profile is enabled on the cluster.
The Defender profile deployed to each node provides the runtime protections and collects signals from nodes.
RECOMMENDATION
Consider enabling the Defender profile with Azure Kubernetes Service (AKS) cluster.
EXAMPLES
Configure with Azure template
To enable the Defender profile with Azure Kubernetes Service clusters:
- Set the
properties.securityProfile.defender.securityMonitoring.enabledtotrue.
For example:
{
"type": "Microsoft.ContainerService/managedClusters",
"apiVersion": "2023-01-02-preview",
"name": "[parameters('clusterName')]",
"location": "[parameters('location')]",
"properties": {
"securityProfile": {
"defender": {
"logAnalyticsWorkspaceResourceId": "[parameters('logAnalyticsWorkspaceResourceId')]",
"securityMonitoring": {
"enabled": true
}
}
}
}
}
Configure with Bicep
To enable the Defender profile with Azure Kubernetes Service clusters:
- Set the
properties.securityProfile.defender.securityMonitoring.enabledtotrue.
For example:
resource cluster 'Microsoft.ContainerService/managedClusters@2023-01-02-preview' = {
location: location
name: clusterName
properties: {
securityProfile: {
defender: {
logAnalyticsWorkspaceResourceId: logAnalyticsWorkspaceResourceId
securityMonitoring: {
enabled: true
}
}
}
}
}
NOTES
Outbound access so that the Defender profile can connect to Microsoft Defender for Cloud to send security data and events is required.