Azure Monitor container insights for Azure Kubernetes Service (AKS) hybrid clusters (preview)

Note

Support for monitoring AKS hybrid clusters is currently in preview. We recommend only using preview features in safe testing environments.

Azure Monitor container insights provides a rich monitoring experience for AKS hybrid clusters (preview). This article describes how to set up Container insights to monitor an AKS hybrid cluster.

Supported configurations

  • Azure Monitor container insights supports monitoring only Linux containers.

Prerequisites

Onboarding

az login

az account set --subscription <cluster-subscription-name>

az k8s-extension create --name azuremonitor-containers --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type provisionedclusters --cluster-resource-provider "microsoft.hybridcontainerservice" --extension-type Microsoft.AzureMonitor.Containers --configuration-settings amalogs.useAADAuth=true

Validation

Extension details

Showing the extension details:

az k8s-extension list --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type provisionedclusters --cluster-resource-provider "microsoft.hybridcontainerservice"

Delete extension

The command for deleting the extension:

az k8s-extension delete --cluster-name <cluster-name> --resource-group <resource-group> --cluster-type provisionedclusters --cluster-resource-provider "microsoft.hybridcontainerservice" --name azuremonitor-containers --yes

Known Issues/Limitations

  • Windows containers are not supported currently