Skip to content

Commit 4da7fe0

Browse files
Merge pull request #2526 from MicrosoftDocs/main
Auto Publish – main to live - 2026-02-18 12:00 UTC
2 parents 104f107 + 81c1c13 commit 4da7fe0

1 file changed

Lines changed: 22 additions & 9 deletions

File tree

articles/defender-for-cloud/deploy-helm.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Install Defender for Containers sensor using Helm
33
description: Learn how to install the Microsoft Defender for Containers sensor on Kubernetes clusters using Helm.
44
author: Elazark
55
ms.topic: how-to
6-
ms.date: 02/01/2026
6+
ms.date: 02/18/2026
77
ms.author: elkrieger
88
ai-usage: ai-assisted
99
---
@@ -58,7 +58,7 @@ Depending on your deployment type, follow the relevant instructions to install t
5858

5959
- Helm version 3.8 or later (the available version supports OCI)
6060

61-
- Azure CLI must be [installed](/cli/azure/install-azure-cli?view=azure-cli-latest) and [logged in](/cli/azure/reference-index?view=azure-cli-latest) to an account with resource group owner role for the target cluster.
61+
- Azure CLI must be [installed](/cli/azure/install-azure-cli?view=azure-cli-latest&preserve-view=true) and [logged in](/cli/azure/reference-index?view=azure-cli-latest&preserve-view=true) to an account with resource group owner role for the target cluster.
6262

6363
- Azure resource ID for the target cluster
6464

@@ -81,7 +81,7 @@ Depending on your deployment type, follow the relevant instructions to install t
8181
8282
Or, run the [delete_conflicting_policies.sh](https://github.com/microsoft/Microsoft-Defender-For-Containers/blob/main/scripts/delete_conflicting_policies.sh) script with the following command:
8383
84-
```azurecli
84+
```bash
8585
delete_conflicting_policies.sh <CLUSTER_AZURE_RESOURCE_ID>
8686
```
8787
This command removes resource group and subscription level policies for setting up the generally available (GA) version of Defender for Containers. It can affect clusters other than the one you're configuring.
@@ -92,11 +92,11 @@ Use the [install_defender_sensor_aks.sh](https://github.com/microsoft/Microsoft-
9292
9393
Run the script with the command:
9494
95-
```azurecli
96-
install_defender_sensor_aks.sh --id <CLUSTER_AZURE_RESOURCE_ID> --version <VERSION> [--release_train <RELEASE_TRAIN>] [--antimalware]
95+
```bash
96+
install_defender_sensor_aks.sh --id <CLUSTER_AZURE_RESOURCE_ID> --version <VERSION> [--release_train <RELEASE_TRAIN>] [--namespace <NAMESPACE>] [--antimalware]
9797
```
9898
99-
Replace the placeholder text `<CLUSTER_AZURE_RESOURCE_ID>`, `<RELEASE_TRAIN>`, and `<VERSION>` with your own values.
99+
Replace the placeholder text `<CLUSTER_AZURE_RESOURCE_ID>`, `<RELEASE_TRAIN>`, `<NAMESPACE>`, and `<VERSION>` with your own values:
100100
101101
- Replace `<VERSION>` with:
102102
- `latest` for the most recent version.
@@ -106,6 +106,11 @@ Replace the placeholder text `<CLUSTER_AZURE_RESOURCE_ID>`, `<RELEASE_TRAIN>`, a
106106
- `stable` (default).
107107
- `public` for the preview version.
108108
109+
- Replace `<NAMESPACE>` with `kube-system` if you are deploying to AKS Automatic.
110+
111+
> [!NOTE]
112+
> Don’t provide this parameter for standard AKS deployments. If not specified, the default namespace is `mdc`.
113+
109114
- Use the `--antimalware` flag to enable antimalware scanning.
110115
111116
> [!NOTE]
@@ -117,7 +122,7 @@ Replace the placeholder text `<CLUSTER_AZURE_RESOURCE_ID>`, `<RELEASE_TRAIN>`, a
117122
118123
- Helm version 3.8 or later (the available version supports OCI)
119124
120-
- Azure CLI must be [installed](/cli/azure/install-azure-cli?view=azure-cli-latest) and [logged in](/cli/azure/reference-index?view=azure-cli-latest) to an account with resource group owner role for the security connector.
125+
- Azure CLI must be [installed](/cli/azure/install-azure-cli?view=azure-cli-latest&preserve-view=true) and [logged in](/cli/azure/reference-index?view=azure-cli-latest&preserve-view=true) to an account with resource group owner role for the security connector.
121126
122127
- Ensure the cluster account is connected to Microsoft Defender for Cloud. Learn how to [connect your AWS account](quickstart-onboard-aws.md) or [connect your GCP project](quickstart-onboard-gcp.md) to your Defender for Cloud.
123128
@@ -140,7 +145,7 @@ Replace the placeholder text `<CLUSTER_AZURE_RESOURCE_ID>`, `<RELEASE_TRAIN>`, a
140145
141146
1. Set the `kubeconfig` context to the target cluster by using the following command:
142147
143-
```azurecli
148+
```bash
144149
install_defender_sensor_mc.sh --id <SECURITY_CONNECTOR_AZURE_RESOURCE_ID> --version <VERSION> --distribution <DISTRIBUTION> [--release_train <RELEASE_TRAIN>] [--antimalware]
145150
```
146151
@@ -172,12 +177,20 @@ Replace the placeholder text `<CLUSTER_AZURE_RESOURCE_ID>`, `<RELEASE_TRAIN>`, a
172177
173178
### Verify the installation
174179
175-
Verify that the installation succeeded by using the command:
180+
Verify that the installation succeeded by using the namespace you used during installation:
181+
182+
**For standard AKS, EKS, and GKE**
176183
177184
```bash
178185
helm list --namespace mdc
179186
```
180187
188+
**For AKS Automatic**
189+
190+
```bash
191+
helm list --namespace kube-system
192+
```
193+
181194
The installation is successful if the `STATUS` field displays **deployed**.
182195
183196
## Configure security rules for gated deployment

0 commit comments

Comments
 (0)