Information
Turning on Microsoft Defender for Containers enables threat detection for Container Registries including Kubernetes, providing threat intelligence, anomaly detection, and behavior analytics in the Microsoft Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Container Registries allows for greater defense-in-depth, with threat detection provided by the Microsoft Security Response Center (MSRC).
Impact:
Turning on Microsoft Defender for Containers incurs an additional cost per resource.
Solution
From Azure Portal
Go to Microsoft Defender for Cloud
Select Environment Settings under the 'Management' heading.
Click on the subscription name
SelectDefender plans under the 'Settings' heading.
For Containers click the sliding button under the Status heading to be On
Click Save in the top left.
From Azure CLI
Use the below command to enable Standard pricing tier for Storage
az security pricing create -n 'ContainerRegistry' --tier 'standard'
From PowerShell
Set-AzSecurityPricing -Name 'ContainerRegistry' -PricingTier 'Standard'
Default Value:
By default, Microsoft Defender for Containers is off.