az aks adds Container Insights onboarding and offboarding flags
Introduced 2026-10-06 · score 0.92
HOW TO USE IT
When enabling Container Insights on a new or existing managed-identity AKS cluster, use `az aks create` or `az aks update` with `--enable-azure-monitor-logs`; to turn it off, use `az aks update` with `--disable-azure-monitor-logs`. Replace deprecated `--enable-msi-auth-for-monitoring` with `--enable-azure-monitor-logs` where applicable.
az aks create --resource-group <resource-group> --name <cluster-name> --enable-azure-monitor-logsaz aks update --resource-group <resource-group> --name <cluster-name> --enable-azure-monitor-logsaz aks update --resource-group <resource-group> --name <cluster-name> --disable-azure-monitor-logsWHY THIS HELPS
Enable or disable Container Insights while creating or maintaining an AKS cluster.
BEFORE THIS CHANGE
Use `--enable-msi-auth-for-monitoring` for monitoring managed identity authentication.
REQUIREMENTS AND LIMITATIONS
- Version: 2.91.0
- --resource-group, -g (required): Name of the resource group. [Reference](https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest)
- --name, -n (required): Name of the managed cluster. [Reference](https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest)
- --enable-azure-monitor-logs: Enables Azure Monitor logs (Container Insights) using managed identity authentication; documented default is false.
- --disable-azure-monitor-logs: Disables Azure Monitor logs (Container Insights); documented default is false.
- --enable-msi-auth-for-monitoring: Deprecated; accepted values are false or true. Use `--enable-azure-monitor-logs` instead.
- Prerequisite: The cluster must use a managed identity; service-principal-authenticated clusters are unsupported.
- Prerequisite: Clusters still using legacy shared-key authentication must first migrate to managed identity authentication.
- `--enable-msi-auth-for-monitoring` is deprecated in favor of `--enable-azure-monitor-logs`.
- The onboarding flag uses the Azure Monitor profile and managed identity authentication.
FIRST-PARTY EVIDENCE
- https://learn.microsoft.com/en-us/cli/azure/release-notes-azure-cli#october-06-2026
- https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest
Check the installed version and the source before using it. Entry JSON