Skip to content

Commit 90511ea

Browse files
authored
Merge pull request #85042 from KrishnaG-MSFT/patch-10
(AzureCXP) MicrosoftDocs/azure-docs#36794
2 parents b9ea6ac + 66bcaf3 commit 90511ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/azure-monitor/insights/containers.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ In this section we cover the steps required to install the Log Analytics agent a
197197
2. Run the following commands to create a project for Azure Monitor and set the user account.
198198
199199
```
200-
oadm new-project omslogging --node-selector='zone=default'
200+
oc adm new-project omslogging --node-selector='zone=default'
201201
oc project omslogging
202202
oc create serviceaccount omsagent
203-
oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:omslogging:omsagent
204-
oadm policy add-scc-to-user privileged system:serviceaccount:omslogging:omsagent
203+
oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:omslogging:omsagent
204+
oc adm policy add-scc-to-user privileged system:serviceaccount:omslogging:omsagent
205205
```
206206
207207
3. To deploy the daemon-set, run the following:
@@ -236,11 +236,11 @@ If you want to use secrets to secure your Log Analytics Workspace ID and Primary
236236
2. Run the following commands to create a project for Azure Monitor and set the user account. The secret generating script asks for your Log Analytics Workspace ID `<WSID>` and Primary Key `<KEY>` and upon completion, it creates the ocp-secret.yaml file.
237237
238238
```
239-
oadm new-project omslogging --node-selector='zone=default'
239+
oc adm new-project omslogging --node-selector='zone=default'
240240
oc project omslogging
241241
oc create serviceaccount omsagent
242-
oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:omslogging:omsagent
243-
oadm policy add-scc-to-user privileged system:serviceaccount:omslogging:omsagent
242+
oc adm policy add-cluster-role-to-user cluster-reader system:serviceaccount:omslogging:omsagent
243+
oc adm policy add-scc-to-user privileged system:serviceaccount:omslogging:omsagent
244244
```
245245
246246
3. Deploy the secret file by running the following:

0 commit comments

Comments
 (0)