Protect your on-premises Kubernetes clusters with Defender for Containers
Defender for Containers in Microsoft Defender for Cloud is the cloud-native solution that is used to secure your containers so you can improve, monitor, and maintain the security of your clusters, containers, and their applications.
Learn more about Overview of Microsoft Defender for Containers.
You can learn more about Defender for Container's pricing on the pricing page.
Prerequisites
You need a Azure subscription. If you don't have an Azure subscription, you can sign up for a trial subscription.
You must enable Microsoft Defender for Cloud on your Azure subscription.
Ensure the following Azure Arc-enabled Kubernetes network requirements are validated and connect the Kubernetes cluster to Azure Arc.
Validate the following endpoints are configured for outbound access so that the Defender sensor can connect to Microsoft Defender for Cloud to send security data and events:
Domain Port *.ods.opinsights.azure.cn 443 *.oms.opinsights.azure.cn 443 login.partner.microsoftonline.cn 443
Enable the Defender for Containers plan
By default, when enabling the plan through the Azure portal, Microsoft Defender for Containers is configured to automatically install required components to provide the protections offered by plan, including the assignment of a default workspace.
If you would prefer to assign a custom workspace, one can be assigned through the Azure Policy.
To enable Defender for Containers plan on your subscription:
Sign in to the Azure portal.
Search for and select Microsoft Defender for Cloud.
In the Defender for Cloud menu, select Environment settings.
Select the relevant subscription.
On the Defender plans page, toggle the Containers plan to On.
Select Save.
Note
To enable or disable individual Defender for Containers capabilities, either globally or for specific resources, see How to enable Microsoft Defender for Containers components.
Deploy the Defender sensor on Arc-enabled Kubernetes clusters
You can enable the Defender for Containers plan and deploy all of the relevant components in different ways. We walk you through the steps to accomplish this using the Azure portal. Learn how to deploy the Defender sensor with REST API, Azure CLI or with a Resource Manager template.
To deploy the Defender sensor in Azure:
Sign in to the Azure portal.
Search for and select Microsoft Defender for Cloud.
Navigate to the Recommendations page.
Search for and select the
Azure Arc-enabled Kubernetes clusters should have the Defender extension installed
recommendation.Select all of the relevant affected resources.
Select Fix.
Next steps
For advanced enablement features for Defender for Containers, see the Enable Microsoft Defender for Containers page.