Skip to content

Commit 7bce5d5

Browse files
committed
redo ARM section
1 parent b7aa76a commit 7bce5d5

File tree

1 file changed

+37
-26
lines changed

1 file changed

+37
-26
lines changed

articles/azure-monitor/containers/container-insights-private-link.md

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This article describes how to configure Container insights to use Azure Private
1616
### [CLI](#tab/cli)
1717

1818

19-
### Pre-requisite
19+
### Pre-requisites
2020
- Azure CLI version 2.61.0 or higher.
2121
- Azure Monitor Private Link Scope (AMPLS)
2222

@@ -35,7 +35,7 @@ Example:
3535
az aks enable-addons --addon monitoring --name "my-cluster" --resource-group "my-resource-group" --workspace-resource-id "/subscriptions/my-subscription/resourceGroups/my-resource-group/providers/Microsoft.OperationalInsights/workspaces/my-workspace" --ampls-resource-id "/subscriptions/my-subscription /resourceGroups/ my-resource-group/providers/microsoft.insights/privatelinkscopes/my-ampls-resource"
3636
```
3737

38-
**Existing Log Analytics workspace**
38+
**Use existing Log Analytics workspace**
3939

4040
```azurecli
4141
az aks enable-addons --addon monitoring --name <cluster-name> --resource-group <cluster-resource-group-name> --workspace-resource-id <workspace-resource-id> --ampls-resource-id "<azure-monitor-private-link-scope-resource-id>"
@@ -56,46 +56,57 @@ az aks create --resource-group rgName --name clusterName --enable-addons monitor
5656
Example:
5757

5858
```azurecli
59-
az aks create --resource-group my-resource-group --name "my-cluster" --enable-addons monitoring --workspace-resource-id "/subscriptions/my-subscription/resourceGroups/my-resource-group/providers/Microsoft.OperationalInsights/workspaces/my-workspace" --ampls-resource-id "/subscriptions/my-subscription /resourceGroups/ my-resource-group/providers/microsoft.insights/privatelinkscopes/my-ampls-resource"
59+
az aks create --resource-group "my-resource-group" --name "my-cluster" --enable-addons monitoring --workspace-resource-id "/subscriptions/my-subscription/resourceGroups/my-resource-group/providers/Microsoft.OperationalInsights/workspaces/my-workspace" --ampls-resource-id "/subscriptions/my-subscription /resourceGroups/ my-resource-group/providers/microsoft.insights/privatelinkscopes/my-ampls-resource"
6060
```
6161

6262

6363
### [ARM](#tab/arm)
6464

65+
The following sections provide links to the template and parameter files for enabling private link with Container insights on an AKS and Arc-enabled clusters.
66+
67+
Edit the values in the parameter file and deploy the template using any valid method for deploying ARM templates. Retrieve the **resource ID** of the resources from the **JSON** View of their **Overview** page.
68+
69+
Based on your requirements, you can configure other parameters such `streams`, `enableContainerLogV2`, `enableSyslog`, `syslogLevels`, `syslogFacilities`, `dataCollectionInterval`, `namespaceFilteringModeForDataCollection` and `namespacesForDataCollection`.
70+
6571
### Prerequisites
6672
- Azure Monitor Private Link Scope (AMPLS)
6773
- The template must be deployed in the same resource group as the cluster.
6874

69-
### Download and install template
75+
### AKS cluster
76+
77+
- Template file: https://aka.ms/aks-enable-monitoring-msi-onboarding-template-file
78+
- Parameter file: https://aka.ms/aks-enable-monitoring-msi-onboarding-template-parameter-file
7079

71-
1. Download ARM template and parameter file:
72-
73-
**AKS cluster**
74-
- Template file: https://aka.ms/aks-enable-monitoring-msi-onboarding-template-file
75-
- Parameter file: https://aka.ms/aks-enable-monitoring-msi-onboarding-template-parameter-file
80+
The following table describes each of the the parameters in the parameter file for AKS.
7681

77-
**Arc-enabled Kubernetes cluster**
78-
- Template file: https://aka.ms/arc-k8s-azmon-extension-msi-arm-template
79-
- Parameter file: https://aka.ms/arc-k8s-azmon-extension-msi-arm-template-params
82+
| Parameter | Description |
83+
|:---|:---|
84+
| `aksResourceId`| Resource ID of the cluster. |
85+
| `aksResourceLocation` | Azure Region of the cluster. |
86+
| `workspaceResourceId`| Resource ID of the Log Analytics workspace. |
87+
| `workspaceRegion` | Region of the Log Analytics workspace. |
88+
| `resourceTagValues` | 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 be MSCI-\<clusterName\>-\<clusterRegion\>, and this resource created in an AKS clusters resource group. For first time onboarding, you can set arbitrary tag values. |
89+
| `useAzureMonitorPrivateLinkScope` | Boolean flag to indicate whether Azure Monitor link scope is used or not. |
90+
| `azureMonitorPrivateLinkScopeResourceId` | Resource ID of the Azure Monitor Private link scope. This only used if `useAzureMonitorPrivateLinkScope` is set to **true**. |
8091

81-
2. Edit the following values in the parameter file. Retrieve the **resource ID** of the resources from the **JSON** View of their **Overview** page.
92+
### Arc-enabled Kubernetes cluster
8293

83-
| Parameter | Description |
84-
|:---|:---|
85-
| AKS: `aksResourceId`<br>Arc: `clusterResourceId` | Resource ID of the cluster. |
86-
| AKS: `aksResourceLocation`<br>Arc: `clusterRegion` | Azure Region of the cluster. |
87-
| AKS: `workspaceResourceId`<br>Arc: `workspaceResourceId` | Resource ID of the Log Analytics workspace. |
88-
| AKS: `workspaceRegion`<br>Arc: `workspaceRegion` | Region of the Log Analytics workspace. |
89-
| Arc: `workspaceDomain` | Domain of the Log Analytics workspace:<br>`opinsights.azure.com` for Azure public cloud<br>`opinsights.azure.us` for Azure US Government<br>`opinsights.azure.cn` for Azure China Cloud |
90-
| AKS: `resourceTagValues` | 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 be MSCI-\<clusterName\>-\<clusterRegion\>, and this resource created in an AKS clusters resource group. For first time onboarding, you can set arbitrary tag values. |
91-
| AKS: `useAzureMonitorPrivateLinkScope`<br>Arc: `useAzureMonitorPrivateLinkScope` | Boolean flag to indicate whether Azure Monitor link scope is used or not. |
92-
| AKS: `azureMonitorPrivateLinkScopeResourceId`<br>Arc: `azureMonitorPrivateLinkScopeResourceId` | Resource ID of the Azure Monitor Private link scope. This only used if `useAzureMonitorPrivateLinkScope` is set to **true**. |
94+
- Template file: https://aka.ms/arc-k8s-azmon-extension-msi-arm-template
95+
- Parameter file: https://aka.ms/arc-k8s-azmon-extension-msi-arm-template-params
9396

94-
Based on your requirements, you can configure other parameters such `streams`, `enableContainerLogV2`, `enableSyslog`, `syslogLevels`, `syslogFacilities`, `dataCollectionInterval`, `namespaceFilteringModeForDataCollection` and `namespacesForDataCollection`.
97+
| Parameter | Description |
98+
|:---|:---|
99+
| `clusterResourceId` | Resource ID of the cluster. |
100+
| `clusterRegion` | Azure Region of the cluster. |
101+
| `workspaceResourceId` | Resource ID of the Log Analytics workspace. |
102+
| `workspaceRegion` | Region of the Log Analytics workspace. |
103+
| `workspaceDomain` | Domain of the Log Analytics workspace:<br>`opinsights.azure.com` for Azure public cloud<br>`opinsights.azure.us` for Azure US Government<br>`opinsights.azure.cn` for Azure China Cloud |
104+
| `resourceTagValues` | 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 be MSCI-\<clusterName\>-\<clusterRegion\>, and this resource created in an AKS clusters resource group. For first time onboarding, you can set arbitrary tag values. |
105+
| `useAzureMonitorPrivateLinkScope` | Boolean flag to indicate whether Azure Monitor link scope is used or not. |
106+
| `azureMonitorPrivateLinkScopeResourceId` | Resource ID of the Azure Monitor Private link scope. This only used if `useAzureMonitorPrivateLinkScope` is set to **true**. |
95107

96-
3. Deploy the template with the parameter file by using any valid method for deploying Resource Manager templates. For examples of different methods, see [Deploy the sample templates](../resource-manager-samples.md#deploy-the-sample-templates).
97108

98-
### Cluster using legacy authentication
109+
## Cluster using legacy authentication
99110
Use the following procedures to enable network isolation by connecting your cluster to the Log Analytics workspace using [Azure Private Link](../logs/private-link-security.md) if your cluster is not using managed identity authentication. This requires a [private AKS cluster](../../aks/private-clusters.md).
100111

101112
1. Create a private AKS cluster following the guidance in [Create a private Azure Kubernetes Service cluster](../../aks/private-clusters.md).

0 commit comments

Comments
 (0)