Skip to content

Commit 1b8bac9

Browse files
authored
Merge pull request #175660 from bwren/patch-40
Update container-insights-troubleshoot.md
2 parents 51ab984 + f024afc commit 1b8bac9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

articles/azure-monitor/containers/container-insights-troubleshoot.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,31 @@ To view the non-Azure Kubernetes cluster in Container insights, Read access is r
156156
kubernetes.azure.com/managedby: aks
157157
```
158158
159+
## Installation of Azure Monitor Containers Extension fail with an error containing “manifests contain a resource that already exists” on Azure Arc Enabled Kubernetes cluster
160+
The error _manifests contain a resource that already exists_ indicates that resources of the Container Insights agent already exist on the Azure Arc Enabled Kubernetes cluster. This indicates that the container insights agent is already installed either through azuremonitor-containers HELM chart or Monitoring Addon if it is AKS Cluster which is connected Azure Arc. The solution to this issue, is to clean up the existing resources of container insights agent if it exists and then enable Azure Monitor Containers Extension.
161+
162+
### For non-AKS clusters
163+
1. Against the K8s cluster which is connected to Azure Arc, run below command to verify whether the azmon-containers-release-1 helm chart release exists or not:
164+
165+
`helm list -A`
166+
167+
2. If the output of the above command indicates that azmon-containers-release-1 exists, delete the helm chart release:
168+
169+
`helm del azmon-containers-release-1`
170+
171+
### For AKS clusters
172+
1. Run below commands and look for omsagent addon profile to verify the AKS monitoring addon enabled or not:
173+
174+
```
175+
az account set -s <clusterSubscriptionId>
176+
az aks show -g <clusterResourceGroup> -n <clusterName>
177+
```
178+
179+
2. If there is omsagent addon profile config with log analytics workspace resource Id in the output of the above command indicates that, AKS Monitoring addon enabled and which needs to be disabled:
180+
181+
`az aks disable-addons -a monitoring -g <clusterResourceGroup> -n <clusterName>`
182+
183+
If above steps didn’t resolve the installation of Azure Monitor Containers Extension issues, please create a ticket to Microsoft for further investigation.
159184
160185
161186
## Next steps

0 commit comments

Comments
 (0)