Skip to content

Commit 05bcf67

Browse files
committed
indent
1 parent 8df35e4 commit 05bcf67

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

articles/azure-arc/kubernetes/deploy-azure-monitor-for-containers.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,44 +38,46 @@ Onboard [Azure Monitor enabled containers](https://docs.microsoft.com/azure/azur
3838

3939
1. Download the Onboarding script
4040

41-
```console
42-
curl -LO https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/docs/haiku/onboarding_azuremonitor_for_containers.ps1
43-
```
41+
```console
42+
curl -LO https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/docs/haiku/onboarding_azuremonitor_for_containers.ps1
43+
```
4444

4545
2. Install [PowerShell core](https://docs.microsoft.com/PowerShell/scripting/install/installing-PowerShell?view=PowerShell-6) on your dev machine to execute the PowerShell onboarding script.
4646

4747
3. Login to Azure
4848

49-
```console
50-
az login --use-device-code
51-
```
49+
```console
50+
az login --use-device-code
51+
```
5252

5353
4. Execute below script with your cluster Azure Arc K8s Cluster ResourceId and context of the kubernetes cluster
5454

55-
```console
56-
.\onboarding_azuremonitor_for_containers.ps1 -azureArcClusterResourceId <resourcedIdOfAzureArcCluster> -kubeContext <kube-context>
55+
```console
56+
.\onboarding_azuremonitor_for_containers.ps1 -azureArcClusterResourceId <resourcedIdOfAzureArcCluster> -kubeContext <kube-context>
5757

58-
For Example ..
59-
.\onboarding_azuremonitor_for_containers.ps1 -azureArcClusterResourceId /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourceGroups/AzureArcTest/providers/Microsoft.Kubernetes/connectedClusters/AzureArcTest1 -kubeContext MyK8sTestCluster
60-
```
58+
For Example ..
59+
.\onboarding_azuremonitor_for_containers.ps1 -azureArcClusterResourceId /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourceGroups/AzureArcTest/providers/Microsoft.Kubernetes/connectedClusters/AzureArcTest1 -kubeContext MyK8sTestCluster
60+
```
6161

6262
### Option 2: Using Bash Script
6363

6464
> **Tip:** The script uses bash 4 features, so make sure your bash is up to date. You can check your current version with `bash --version`.
6565
6666
1. Download the Onboarding script
67-
```console
68-
curl -LO https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/docs/haiku/onboarding_azuremonitor_for_containers.sh
69-
```
67+
68+
```console
69+
curl -LO https://raw.githubusercontent.com/microsoft/OMS-docker/ci_feature/docs/haiku/onboarding_azuremonitor_for_containers.sh
70+
```
7071

7172
2. Execute below script with your cluster Azure Arc K8s Cluster ResourceId and context of the kubernetes cluster
72-
```console
73-
bash onboarding_azuremonitor_for_containers.sh <resourcedIdOfAzureArcCluster> <kube-context>
7473

75-
For Example:
76-
bash onboarding_azuremonitor_for_containers.sh /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourceGroups/AzureArcTest/providers/Microsoft.Kubernetes/connectedClusters/AzureArcTest1 MyK8sTestCluster
74+
```console
75+
bash onboarding_azuremonitor_for_containers.sh <resourcedIdOfAzureArcCluster> <kube-context>
76+
77+
For Example:
78+
bash onboarding_azuremonitor_for_containers.sh /subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/resourceGroups/AzureArcTest/providers/Microsoft.Kubernetes/connectedClusters/AzureArcTest1 MyK8sTestCluster
7779

78-
```
80+
```
7981

8082
## Configure agent data collection
8183

@@ -95,9 +97,9 @@ Navigate to https://aka.ms/azmon-containers-azurearc to view the Onboarded Clus
9597

9698
If you would like to disable monitoring due to some reason, you can just simply delete the Azure Monitor for containers HELM chart to stop collecting and ingesting monitoring data to Azure Monitor for containers backend
9799

98-
```console
99-
helm del azmon-containers-release-1
100-
```
100+
```console
101+
helm del azmon-containers-release-1
102+
```
101103

102104
## Next steps
103105

0 commit comments

Comments
 (0)