Skip to content

Commit b0c13b9

Browse files
committed
fix: Seperate AKS and ARC deletion commands
1 parent 92feea5 commit b0c13b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/azure-monitor/containers/kubernetes-monitoring-disable.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,14 @@ The configuration change can take a few minutes to complete. Because Helm tracks
142142
143143
Use the following `az aks update` Azure CLI command with the `--disable-azure-monitor-metrics` parameter to remove the metrics add-on from your AKS cluster or `az k8s-extension delete` Azure CLI command with the `--name azuremonitor-metrics` parameter to remove the metrics add-on from Arc-enabled cluster, and stop sending Prometheus metrics to Azure Monitor managed service for Prometheus. It doesn't remove the data already collected and stored in the Azure Monitor workspace for your cluster.
144144
145+
### AKS Cluster:
146+
145147
```azurecli
146148
az aks update --disable-azure-monitor-metrics -n <cluster-name> -g <cluster-resource-group>
149+
```
150+
151+
### Azure Arc-enabled Cluster:
152+
```
147153
az k8s-extension delete --name azuremonitor-metrics --cluster-name <cluster-name> --resource-group <cluster-resource-group> --cluster-type connectedClusters
148154
```
149155

0 commit comments

Comments
 (0)