Skip to main content


2.1.8 Set Microsoft Defender for Containers To 'On' (Manual)

Profile Applicability

• Level 2


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.


Enabling Microsoft Defender for Container Registries allows for greater defense-in-depth, with threat detection provided by the Microsoft Security Response Center (MSRC).


Turning on Microsoft Defender for Containers incurs an additional cost per resource.


From Azure Portal

  1. Go to Microsoft Defender for Cloud
  2. Select Environment Settings under the 'Management' heading.
  3. Click on the subscription name
  4. SelectDefender plans under the 'Settings' heading.
  5. For Containers the sliding button under the 'Status' heading should be On If the tenant is licensed and enabled, the output should indicate Standard

From Azure CLI

Ensure the output of the below command is Standard under the PricingTier column.

az security pricing show "ContainerRegistry" --query pricingTier

From Azure PowerShell

Get-AzSecurityPricing -Name 'ContainerRegistry' | Select-Object Name,PricingTier

Ensure output for -PricingTier is Standard


From Azure Portal

  1. Go to Microsoft Defender for Cloud.
  2. Select Environment Settings.
  3. Click the subscription name.
  4. Select Defender plans.
  5. Set Status to On for Containers.
  6. Click Save.

From Azure CLI

Use the below command to enable Standard pricing tier for Containers:

az security pricing create -n 'ContainerRegistry' --tier 'standard'

From Azure PowerShell

Set-AzSecurityPricing -Name 'ContainerRegistry' -PricingTier 'Standard'