Skip to content

Commit 08a7771

Browse files
authored
Merge pull request #245334 from austonli/patch-35
Cost optimization GA & V2 docs updates
2 parents 0ff3590 + 4e294d3 commit 08a7771

12 files changed

+107
-33
lines changed

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

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
title: Configure agent authentication for the Container Insights agent | Microsoft Docs
33
description: This article describes how to configure authentication for the containerized agent used by Container insights.
44
ms.topic: conceptual
5-
ms.date: 06/13/2023
6-
ms.reviewer: damendo
5+
ms.date: 07/31/2023
6+
ms.reviewer: aul
77
---
88

99
# Authentication for Container Insights
1010

1111
Container Insights now defaults to managed identity authentication. This secure and simplified authentication model has a monitoring agent that uses the cluster's managed identity to send data to Azure Monitor. It replaces the existing legacy certificate-based local authentication and removes the requirement of adding a Monitoring Metrics Publisher role to the cluster.
1212

13+
> [!Note]
14+
> [ContainerLogV2](container-insights-logging-v2.md) will be default schema for customers who will be onboarding container insights with Managed Identity Auth using ARM, Bicep, Terraform, Policy and Portal onboarding. ContainerLogV2 can be explicitly enabled through CLI version 2.51.0 or higher using Data collection settings.
15+
1316
## How to enable
1417

1518
Click on the relevant tab for instructions to enable Managed identity authentication on your clusters.
@@ -28,14 +31,14 @@ If you don't see the *Use managed identity* option, you are using an SPN cluster
2831

2932
## [Azure CLI](#tab/cli)
3033

31-
See [Migrate to managed identity authentication](https://learn.microsoft.com/azure/azure-monitor/containers/container-insights-enable-aks?tabs=azure-cli#migrate-to-managed-identity-authentication)
34+
See [Migrate to managed identity authentication](container-insights-enable-aks.md?tabs=azure-cli#migrate-to-managed-identity-authentication)
3235

3336
## [Resource Manager template](#tab/arm)
3437

3538
See instructions for migrating
3639

37-
* [AKS clusters](https://learn.microsoft.com/azure/azure-monitor/containers/container-insights-enable-aks?tabs=arm#existing-aks-cluster)
38-
* [Arc-enabled clusters](https://learn.microsoft.com/azure/azure-monitor/containers/container-insights-enable-arc-enabled-clusters?tabs=create-cli%2Cverify-portal%2Cmigrate-arm)
40+
* [AKS clusters](container-insights-enable-aks.md?tabs=arm#existing-aks-cluster)
41+
* [Arc-enabled clusters](container-insights-enable-arc-enabled-clusters.md?tabs=create-cli%2Cverify-portal%2Cmigrate-arm)
3942

4043
## [Bicep](#tab/bicep)
4144

@@ -55,7 +58,8 @@ curl -L https://aka.ms/enable-monitoring-msi-bicep-parameters -o existingCluste
5558
- **workspaceResourceId**: Use the resource ID of your Log Analytics workspace.
5659
- **workspaceRegion**: Use the location of your Log Analytics workspace.
5760
- **resourceTagValues**: Match the existing tag values specified for the existing Container insights extension data collection rule (DCR) of the cluster and the name of the DCR. The name will match `MSCI-<clusterName>-<clusterRegion>` and this resource is created in the same resource group as the AKS clusters. For first time onboarding, you can set the arbitrary tag values.
58-
- Other parameters are for cost optimization, refer to [this guide](https://learn.microsoft.com/azure/azure-monitor/containers/container-insights-cost-config?tabs=create-CLI#data-collection-parameters)
61+
- **enabledContainerLogV2**: Set this parameter value to be true to use the default recommended ContainerLogV2 schema
62+
- Other parameters are for cost optimization, refer to [this guide](container-insights-cost-config.md?tabs=create-CLI#data-collection-parameters)
5963

6064
3. Onboard with the following commands:
6165

@@ -81,6 +85,7 @@ az deployment group create --resource-group <ClusterResourceGroupName> --templat
8185
- **workspaceResourceId**: Use the resource ID of your Log Analytics workspace.
8286
- **workspaceRegion**: Use the location of your Log Analytics workspace.
8387
- **resourceTagValues**: Match the existing tag values specified for the existing Container insights extension data collection rule (DCR) of the cluster and the name of the DCR. The name match `MSCI-<clusterName>-<clusterRegion>` and this resource is created in the same resource group as the AKS clusters. For first time onboarding, you can set the arbitrary tag values.
88+
- - **enabledContainerLogV2**: Set this parameter value to be true to use the default recommended ContainerLogV2
8489

8590
3. Onboarding with the following commands:
8691

@@ -91,7 +96,7 @@ az deployment group create --resource-group <ClusterResourceGroupName> --templat
9196
```
9297

9398
For new AKS cluster:
94-
Replace and use the managed cluster resources in this [guide](https://learn.microsoft.com/azure/aks/learn/quick-kubernetes-deploy-bicep?tabs=azure-cli)
99+
Replace and use the managed cluster resources in this [guide](../../aks/learn/quick-kubernetes-deploy-bicep.md?tabs=azure-cli)
95100

96101

97102
## [Terraform](#tab/terraform)
@@ -108,7 +113,8 @@ https://aka.ms/enable-monitoring-msi-terraform
108113
- **workspace_resource_id**: Use the resource ID of your Log Analytics workspace.
109114
- **workspace_region**: Use the location of your Log Analytics workspace.
110115
- **resource_tag_values**: Match the existing tag values specified for the existing Container insights extension data collection rule (DCR) of the cluster and the name of the DCR. The name match `MSCI-<clusterName>-<clusterRegion>` and this resource is created in the same resource group as the AKS clusters. For first time onboarding, you can set the arbitrary tag values.
111-
- Other parameters are for cluster settings or cost optimization, refer to [this guide](https://learn.microsoft.com/azure/azure-monitor/containers/container-insights-cost-config?tabs=create-CLI#data-collection-parameters)
116+
- - **enabledContainerLogV2**: Set this parameter value to be true to use the default recommended ContainerLogV2
117+
- Other parameters are for cluster settings or cost optimization, refer to [this guide](container-insights-cost-config.md?tabs=create-CLI#data-collection-parameters)
112118
4. Run `terraform init -upgrade` to initialize the Terraform deployment.
113119
5. Run `terraform plan -out main.tfplan` to initialize the Terraform deployment.
114120
6. Run `terraform apply main.tfplan` to apply the execution plan to your cloud infrastructure.
@@ -124,6 +130,7 @@ https://aka.ms/enable-monitoring-msi-syslog-terraform
124130
- **workspace_resource_id**: Use the resource ID of your Log Analytics workspace.
125131
- **workspace_region**: Use the location of your Log Analytics workspace.
126132
- **resource_tag_values**: Match the existing tag values specified for the existing Container insights extension data collection rule (DCR) of the cluster and the name of the DCR. The name match `MSCI-<clusterName>-<clusterRegion>` and this resource is created in the same resource group as the AKS clusters. For first time onboarding, you can set the arbitrary tag values.
133+
- Other parameters are for cluster settings, refer [to guide](container-insights-cost-config.md?tabs=create-CLI#data-collection-parameters)
127134
4. Run `terraform init -upgrade` to initialize the Terraform deployment.
128135
5. Run `terraform plan -out main.tfplan` to initialize the Terraform deployment.
129136
6. Run `terraform apply main.tfplan` to apply the execution plan to your cloud infrastructure.
@@ -179,7 +186,7 @@ az policy assignment create --name aks-monitoring-addon --policy "AKS-Monitoring
179186
---
180187

181188
## Limitations
182-
1. Ingestion Transformations are not supported: See [Data collection transformation](https://learn.microsoft.com/azure/azure-monitor/essentials/data-collection-transformations) to read more.
189+
1. Ingestion Transformations are not supported: See [Data collection transformation](../essentials/data-collection-transformations.md) to read more.
183190
2. Dependency on DCR/DCRA for region availability - For new AKS region, there might be chances that DCR is still not supported in the new region. In that case, onboarding Container Insights with MSI will fail. One workaround is to onboard to Container Insights through CLI with the old way (with the use of Container Insights solution)
184191

185192
## Timeline

0 commit comments

Comments
 (0)