Container Insights helps you monitor your AKS cluster. What does it mainly track?
Think about what monitoring tools usually do: they watch performance and health.
Container Insights collects metrics and logs from containers and nodes to help you understand cluster health and performance.
You run this command to enable Container Insights on your AKS cluster:
az aks enable-addons --resource-group myResourceGroup --name myAKSCluster --addons monitoring
What output should you expect if the command succeeds?
Successful Azure CLI commands usually return JSON with provisioning state.
The command returns JSON showing the monitoring addon is enabled and provisioning succeeded.
You want to enable Container Insights on AKS but use an existing Log Analytics workspace. Which snippet is correct?
Check the exact parameter name for specifying a custom workspace in Azure CLI docs.
The correct parameter is --workspace-resource-id to specify an existing Log Analytics workspace.
You enabled Container Insights on your AKS cluster, but no data shows up in Azure Monitor. What is a likely cause?
Think about what is needed for data to flow from AKS to Azure Monitor.
Network restrictions blocking outbound traffic to the Log Analytics workspace prevent data from being sent and displayed.
Put these steps in the correct order to enable Container Insights and verify it is working on AKS.
Think about prerequisites before enabling addons and verifying data flow.
First, you need a workspace (3), then ensure network access (4), then enable monitoring (1), and finally check logs (2).