Skip to content

Commit c526cbb

Browse files
Merge pull request #276208 from bwren/docs-editor/kubernetes-monitoring-disable-1716486003
Update kubernetes-monitoring-disable.md
2 parents e64d706 + cbf08bd commit c526cbb

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

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

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -75,26 +75,10 @@ Alternatively, you can use the following ARM template below to remove Container
7575
```
7676

7777
### Arc-enabled Kubernetes cluster
78-
The following PowerShell and Bash scripts are available for removing Container insights from your Arc-enabled Kubernetes clusters. You can get the **kube-context** of your cluster by running the command `kubectl config get-contexts`. If you want to use the current context, then don't specify this parameter.
78+
Use the following CLI command to delete the `azuremonitor-containers` extension and all the Kubernetes resources related to the extension.
7979

80-
PowerShell: [disable-monitoring.ps1](https://aka.ms/disable-monitoring-powershell-script)
81-
82-
```powershell
83-
# Use current context
84-
.\disable-monitoring.ps1 -clusterResourceId <cluster-resource-id>
85-
86-
# Specify kube-context
87-
.\disable-monitoring.ps1 -clusterResourceId <cluster-resource-id> -kubeContext <kube-context>
88-
```
89-
90-
Bash: [disable-monitoring.sh](https://aka.ms/disable-monitoring-bash-script)
91-
92-
```bash
93-
# Use current context
94-
bash disable-monitoring.sh --resource-id $AZUREARCCLUSTERRESOURCEID
95-
96-
# Specify kube-context
97-
bash disable-monitoring.sh --resource-id $AZUREARCCLUSTERRESOURCEID --kube-context $KUBECONTEXT
80+
```azurecli
81+
az k8s-extension delete --name azuremonitor-containers --cluster-name <cluster-name> --resource-group <cluster-resource-group> --cluster-type connectedClusters
9882
```
9983

10084
### Remove Container insights with Helm

0 commit comments

Comments
 (0)