Skip to content

Commit 2947206

Browse files
authored
Merge pull request #274687 from tonyyam23/main
Update AON How-To-Guides and Troubleshooting Documentation
2 parents f6a7f0d + f636521 commit 2947206

File tree

5 files changed

+66
-63
lines changed

5 files changed

+66
-63
lines changed

articles/operator-nexus/howto-baremetal-bmm-ssh.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If the User Principal Name for a user isn't a member of the supplied group, the
2121
> [!NOTE]
2222
> There is currently a transitional period where specifying User Principal Names is optional. In a future release, it will become mandatory and Microsoft Entra ID validation will be enforced for all users. Users are encouraged to add User Principal Names to their keysets before the transitional period ends (planned for July 2024) to avoid keysets being invalidated. Note that if any User Principal Names are added to a keyset, even if they are not added for all users, Microsoft Entra ID validation will be enabled, and this will result in the entire keyset being invalidated if the Group ID specified is not valid.
2323
24-
When the command runs, it executes on each bare metal machine in the Cluster with an active Kubernetes node. There's a reconciliation process that runs periodically that retries the command on any bare metal machine that wasn't available at the time of the original command. Also, any bare metal machine that returns to the cluster via an `az networkcloud baremetalmachine actionreimage` or `az networkcloud baremetalmachine actionreplace` command (see [BareMetal functions](./howto-baremetal-functions.md)) sends a signal causing any active keysets to be sent to the machine as soon as it returns to the cluster. Multiple commands execute in the order received.
24+
When the command runs, it executes on each bare metal machine in the Cluster with an active Kubernetes node. There's a reconciliation process that runs periodically that retries the command on any bare metal machine that wasn't available at the time of the original command. Also, any bare metal machine that returns to the cluster via an `az networkcloud baremetalmachine reimage` or `az networkcloud baremetalmachine replace` command (see [BareMetal functions](./howto-baremetal-functions.md)) sends a signal causing any active keysets to be sent to the machine as soon as it returns to the cluster. Multiple commands execute in the order received.
2525

2626
There's no limit to the number of users in a group.
2727

@@ -56,21 +56,21 @@ The command syntax is:
5656

5757
```azurecli
5858
az networkcloud cluster baremetalmachinekeyset create \
59-
--name <bare metal machine Keyset Name> \
60-
--extended-location name=<Extended Location ARM ID> \
59+
--name "<bare metal machine Keyset Name>" \
60+
--extended-location name="<Extended Location ARM ID>" \
6161
type="CustomLocation" \
62-
--location <Azure Region> \
63-
--azure-group-id <Azure Group ID> \
64-
--expiration <Expiration Timestamp> \
65-
--jump-hosts-allowed <List of jump server IP addresses> \
66-
--os-group-name <Name of the Operating System Group> \
67-
--privilege-level <"Standard" or "Superuser"> \
62+
--location "<Azure Region>" \
63+
--azure-group-id "<Azure Group ID>" \
64+
--expiration "<Expiration Timestamp>" \
65+
--jump-hosts-allowed "<List of jump server IP addresses>" \
66+
--os-group-name "<Name of the Operating System Group>" \
67+
--privilege-level "<"Standard" or "Superuser">" \
6868
--user-list '[{"description":"<User List Description>","azureUserName":"<User Name>",\
6969
"sshPublicKey":{"keyData":"<SSH Public Key>"}, \
7070
"userPrincipalName":""}]', \
71-
--tags key1=<Key Value> key2=<Key Value> \
72-
--cluster-name <Cluster Name> \
73-
--resource-group <Resource Group>
71+
--tags key1="<Key Value>" key2="<Key Value>" \
72+
--cluster-name "<Cluster Name>" \
73+
--resource-group "<cluster_RG>"
7474
```
7575

7676
### Create Arguments
@@ -100,7 +100,7 @@ az networkcloud cluster baremetalmachinekeyset create \
100100
--privilege-level [Required] : The access level allowed for the users
101101
in this key set. Allowed values:
102102
"Standard" or "Superuser".
103-
--resource-group -g [Required] : Name of resource group. Optional if
103+
--resource-group -g [Required] : Name of cluster resource group. Optional if
104104
configuring the default group using `az
105105
configure --defaults group=<name>`.
106106
--user-list [Required] : The unique list of permitted users.
@@ -149,9 +149,9 @@ This example creates a new keyset with two users that have standard access from
149149
```azurecli
150150
az networkcloud cluster baremetalmachinekeyset create \
151151
--name "bareMetalMachineKeySetName" \
152-
--extended-location name="/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" \
152+
--extended-location name="/subscriptions/subscriptionId/resourceGroups/cluster_RG/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName" \
153153
type="CustomLocation" \
154-
--location "location" \
154+
--location "eastus" \
155155
--azure-group-id "f110271b-XXXX-4163-9b99-214d91660f0e" \
156156
--expiration "2022-12-31T23:59:59.008Z" \
157157
--jump-hosts-allowed "192.0.2.1" "192.0.2.5" \
@@ -161,7 +161,7 @@ az networkcloud cluster baremetalmachinekeyset create \
161161
{"description":"Needs access for troubleshooting as a part of the support team","azureUserName":"userXYZ","sshPublicKey":{"keyData":"ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXTSTRnIDpcf5qytjs1XoyYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"}, "userPrincipalName":"[email protected]"}]' \
162162
--tags key1="myvalue1" key2="myvalue2" \
163163
--cluster-name "clusterName"
164-
--resource-group "resourceGroupName"
164+
--resource-group "cluster_RG"
165165
```
166166

167167
For assistance in creating the `--user-list` structure, see [Azure CLI Shorthand](https://github.com/Azure/azure-cli/blob/dev/doc/shorthand_syntax.md).
@@ -174,9 +174,9 @@ The command syntax is:
174174

175175
```azurecli
176176
az networkcloud cluster baremetalmachinekeyset delete \
177-
--name <bare metal machine Keyset Name> \
178-
--cluster-name <Cluster Name> \
179-
--resource-group <Resource Group Name>
177+
--name "<bare metal machine Keyset Name>" \
178+
--cluster-name "<Cluster Name>" \
179+
--resource-group "<cluster_RG>"
180180
```
181181

182182
### Delete Arguments
@@ -185,7 +185,7 @@ az networkcloud cluster baremetalmachinekeyset delete \
185185
--bare-metal-machine-key-set-name --name -n [Required] : The name of the bare metal machine key set to be
186186
deleted.
187187
--cluster-name [Required] : The name of the cluster.
188-
--resource-group -g [Required] : Name of resource group. Optional if configuring the
188+
--resource-group -g [Required] : Name of cluster resource group. Optional if configuring the
189189
default group using `az configure --defaults
190190
group=<name>`.
191191
--no-wait : Do not wait for the long-running operation to
@@ -199,7 +199,7 @@ This example removes the "bareMetalMachineKeysetName" keyset group in the "clust
199199
az networkcloud cluster baremetalmachinekeyset delete \
200200
--name "bareMetalMachineKeySetName" \
201201
--cluster-name "clusterName" \
202-
--resource-group "resourceGroupName"
202+
--resource-group "cluster_RG"
203203
```
204204

205205
## Updating a Bare Metal Machine Keyset
@@ -210,15 +210,15 @@ The command syntax is:
210210

211211
```azurecli
212212
az networkcloud cluster baremetalmachinekeyset update \
213-
--name <bare metal machine Keyset Name> \
214-
--jump-hosts-allowed <List of jump server IP addresses> \
215-
--privilege-level <"Standard" or "Superuser"> \
213+
--name "<bare metal machine Keyset Name>" \
214+
--jump-hosts-allowed "<List of jump server IP addresses>" \
215+
--privilege-level "<"Standard" or "Superuser">" \
216216
--user-list '[{"description":"<User List Description>","azureUserName":"<User Name>",\
217217
"sshPublicKey":{"keyData":"<SSH Public Key>"}, \
218218
"userPrincipalName":""}]', \
219-
--tags key1=<Key Value> key2=<Key Value> \
220-
--cluster-name <Cluster Name> \
221-
--resource-group <Resource Group>
219+
--tags key1="<Key Value>" key2="<Key Value> "\
220+
--cluster-name "<Cluster Name>" \
221+
--resource-group "<cluster_RG>"
222222
```
223223

224224
### Update Arguments
@@ -245,7 +245,7 @@ az networkcloud cluster baremetalmachinekeyset update \
245245
userPrincipalName: Optional. The User Principal Name of the User.
246246
247247
Multiple users can be specified by using more than one --user-list argument.
248-
--resource-group -g [Required] : Name of resource group. Optional if
248+
--resource-group -g [Required] : Name of cluster resource group. Optional if
249249
configuring the default group using `az
250250
configure --defaults group=<name>`.
251251
--tags : Space-separated tags: key[=value]
@@ -270,7 +270,7 @@ az networkcloud cluster baremetalmachinekeyset update \
270270
"sshPublicKey":{"keyData":"ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXTSTRnIDpcf5qytjs1XoyYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"}, \
271271
"userPrincipalName":"[email protected]"}]' \
272272
--cluster-name "clusterName" \
273-
--resource-group "resourceGroupName"
273+
--resource-group "cluster_RG"
274274
```
275275

276276
## Listing Bare Metal Machine Keysets
@@ -281,15 +281,15 @@ The command syntax is:
281281

282282
```azurecli
283283
az networkcloud cluster baremetalmachinekeyset list \
284-
--cluster-name <Cluster Name> \
285-
--resource-group <Resource Group>
284+
--cluster-name "<Cluster Name>" \
285+
--resource-group "<cluster_RG>"
286286
```
287287

288288
### List Arguments
289289

290290
```azurecli
291291
--cluster-name [Required] : The name of the cluster.
292-
--resource-group -g [Required] : Name of resource group. Optional if
292+
--resource-group -g [Required] : Name of cluster resource group. Optional if
293293
configuring the default group using `az
294294
configure --defaults group=<name>`.
295295
```
@@ -302,8 +302,8 @@ The command syntax is:
302302

303303
```azurecli
304304
az networkcloud cluster baremetalmachinekeyset show \
305-
--cluster-name <Cluster Name> \
306-
--resource-group <Resource Group>
305+
--cluster-name "<Cluster Name>" \
306+
--resource-group "<cluster_RG>"
307307
```
308308

309309
### Show Arguments
@@ -312,7 +312,7 @@ az networkcloud cluster baremetalmachinekeyset show \
312312
--bare-metal-machine-key-set-name --name -n [Required] : The name of the bare metal machine key
313313
set.
314314
--cluster-name [Required] : The name of the cluster.
315-
--resource-group -g [Required] : Name of resource group. You can
315+
--resource-group -g [Required] : Name of cluster resource group. You can
316316
configure the default group using `az
317317
configure --defaults group=<name>`.
318318
```

articles/operator-nexus/howto-baremetal-functions.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This article describes how to perform lifecycle management operations on bare me
3636

3737
1. Install the latest version of the
3838
[appropriate CLI extensions](./howto-install-cli-extensions.md).
39-
1. Get the name of the resource group for the BMM.
39+
1. Get the name of the resource group for the BMM - Cluster managed resource group name (cluster_MRG) .
4040
1. Get the name of the bare metal machine that requires a lifecycle management operation.
4141
1. Ensure that the target bare metal machine `poweredState` set to `On` and `readyState` set to `True`.
4242
1. This prerequisite isn't applicable for the `start` command.
@@ -48,7 +48,7 @@ This command will `power-off` the specified `bareMetalMachineName`.
4848
```azurecli
4949
az networkcloud baremetalmachine power-off \
5050
--name "bareMetalMachineName" \
51-
--resource-group "resourceGroupName"
51+
--resource-group "cluster_MRG"
5252
```
5353

5454
## Start the BMM
@@ -58,7 +58,7 @@ This command will `start` the specified `bareMetalMachineName`.
5858
```azurecli
5959
az networkcloud baremetalmachine start \
6060
--name "bareMetalMachineName" \
61-
--resource-group "resourceGroupName"
61+
--resource-group "cluster_MRG"
6262
```
6363

6464
## Restart the BMM
@@ -68,7 +68,7 @@ This command will `restart` the specified `bareMetalMachineName`.
6868
```azurecli
6969
az networkcloud baremetalmachine restart \
7070
--name "bareMetalMachineName" \
71-
--resource-group "resourceGroupName"
71+
--resource-group "cluster_MRG"
7272
```
7373

7474
## Make a BMM unschedulable (cordon)
@@ -85,7 +85,7 @@ parameter, the workloads that are running on the BMM are `stopped` and the BMM i
8585
az networkcloud baremetalmachine cordon \
8686
--evacuate "True" \
8787
--name "bareMetalMachineName" \
88-
--resource-group "resourceGroupName"
88+
--resource-group "cluster_MRG"
8989
```
9090

9191
The `evacuate "True"` removes workloads from that node while `evacuate "False"` only prevents the scheduling of new workloads.
@@ -98,7 +98,7 @@ state on the BMM are `restarted` when the BMM is `uncordoned`.
9898
```azurecli
9999
az networkcloud baremetalmachine uncordon \
100100
--name "bareMetalMachineName" \
101-
--resource-group "resourceGroupName"
101+
--resource-group "cluster_MRG"
102102
```
103103

104104
## Reimage a BMM
@@ -115,7 +115,7 @@ command, with `evacuate "True"`, before executing the `reimage` command.
115115
```azurecli
116116
az networkcloud baremetalmachine reimage \
117117
–-name "bareMetalMachineName" \
118-
--resource-group "resourceGroupName"
118+
--resource-group "cluster_MRG"
119119
```
120120

121121
## Replace BMM
@@ -130,10 +130,10 @@ Use the `replace` command when a server encounters hardware issues requiring a c
130130
```azurecli
131131
az networkcloud baremetalmachine replace \
132132
--name "bareMetalMachineName" \
133-
--resource-group "resourceGroupName" \
133+
--resource-group "cluster_MRG" \
134134
--bmc-credentials password="{password}" username="{user}" \
135135
--bmc-mac-address "00:00:4f:00:57:ad" \
136136
--boot-mac-address "00:00:4e:00:58:af" \
137-
--machine-name "name" \
137+
--machine-name "OS_hostname" \
138138
--serial-number "BM1219XXX"
139139
```

articles/operator-nexus/howto-baremetal-run-data-extract.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The command produces an output file containing the results of the data extract l
2020
- This article assumes that you've installed the Azure command line interface and the `networkcloud` command line interface extension. For more information, see [How to Install CLI Extensions](./howto-install-cli-extensions.md).
2121
- The target bare metal machine is on and has readyState set to True.
2222
- The syntax for these commands is based on the 0.3.0+ version of the `az networkcloud` CLI.
23+
- Get the Cluster Managed Resource group name (cluster_MRG) that you created for Cluster resource.
2324

2425
## Executing a run command
2526

@@ -50,10 +51,10 @@ The command syntax is:
5051

5152
```azurecli-interactive
5253
az networkcloud baremetalmachine run-data-extract --name "<machine-name>" \
53-
--resource-group "<resource-group>" \
54+
--resource-group "<cluster_MRG>" \
5455
--subscription "<subscription>" \
5556
--commands '[{"arguments":["<arg1>","<arg2>"],"command":"<command1>"}]' \
56-
--limit-time-seconds <timeout>
57+
--limit-time-seconds "<timeout>"
5758
```
5859

5960
Specify multiple commands using json format in `--commands` option. Each `command` specifies command and arguments. For a command with multiple arguments, provide as a list to the `arguments` parameter. See [Azure CLI Shorthand](https://github.com/Azure/azure-cli/blob/dev/doc/shorthand_syntax.md) for instructions on constructing the `--commands` structure.
@@ -68,7 +69,7 @@ This example executes the `hardware-support-data-collection` command and get `Sy
6869

6970
```azurecli
7071
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
71-
--resource-group "resourceGroupName" \
72+
--resource-group "cluster_MRG" \
7273
--subscription "subscription" \
7374
--commands '[{"arguments":["SysInfo", "TTYLog"],"command":"hardware-support-data-collection"}]' \
7475
--limit-time-seconds 600
@@ -136,7 +137,7 @@ This example executes the `mde-agent-information` command without arguments.
136137

137138
```azurecli
138139
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
139-
--resource-group "resourceGroupName" \
140+
--resource-group "cluster_MRG" \
140141
--subscription "subscription" \
141142
--commands '[{"command":"mde-agent-information"}]' \
142143
--limit-time-seconds 600
@@ -183,7 +184,7 @@ This example executes the `mde-support-diagnostics` command without arguments.
183184

184185
```azurecli
185186
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
186-
--resource-group "resourceGroupName" \
187+
--resource-group "cluster_MRG" \
187188
--subscription "subscription" \
188189
--commands '[{"command":"mde-support-diagnostics"}]' \
189190
--limit-time-seconds 600
@@ -241,7 +242,7 @@ This example executes the `hardware-rollup-status` command without arguments.
241242

242243
```azurecli
243244
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
244-
--resource-group "resourceGroupName" \
245+
--resource-group "clusete_MRG" \
245246
--subscription "subscription" \
246247
--commands '[{"command":"hardware-rollup-status"}]' \
247248
--limit-time-seconds 600

articles/operator-nexus/howto-baremetal-run-read.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The command execution produces an output file containing the results that can be
2020
1. Install the latest version of the
2121
[appropriate CLI extensions](./howto-install-cli-extensions.md)
2222
1. Ensure that the target BMM must have its `poweredState` set to `On` and have its `readyState` set to `True`
23-
1. Get the Resource group name that you created for `Cluster` resource
23+
1. Get the Managed Resource group name (cluster_MRG) that you created for `Cluster` resource
2424

2525
## Executing a run-read command
2626

@@ -207,10 +207,10 @@ The list below shows the commands you can use. Commands in `*italics*` cannot ha
207207

208208
The command syntax is:
209209
```azurecli
210-
az networkcloud baremetalmachine run-read-command --name <machine-name>
211-
--limit-time-seconds <timeout> \
210+
az networkcloud baremetalmachine run-read-command --name "<machine-name>"
211+
--limit-time-seconds "<timeout>" \
212212
--commands '[{"command":"<command1>"},{"command":"<command2>","arguments":["<arg1>","<arg2>"]}]' \
213-
--resource-group "<resourceGroupName>" \
213+
--resource-group "<cluster_MRG>" \
214214
--subscription "<subscription>"
215215
```
216216

@@ -230,7 +230,7 @@ When an optional argument `--output-directory` is provided, the output result is
230230
az networkcloud baremetalmachine run-read-command --name "<bareMetalMachineName>" \
231231
--limit-time-seconds 60 \
232232
--commands '[{"command":"hostname"},{"command":"ping","arguments":["198.51.102.1","-c","3"]}]' \
233-
--resource-group "<resourceGroupName>" \
233+
--resource-group "<cluster_MRG>" \
234234
--subscription "<subscription>"
235235
```
236236

@@ -240,7 +240,7 @@ az networkcloud baremetalmachine run-read-command --name "<bareMetalMachineName>
240240
az networkcloud baremetalmachine run-read-command --name "<bareMetalMachineName>" \
241241
--limit-time-seconds 60 \
242242
--commands '[{"command":"nc-toolbox nc-toolbox-runread racadm getsysinfo","arguments":["-c"]}]' \
243-
--resource-group "<resourceGroupName>" \
243+
--resource-group "<cluster_MRG>" \
244244
--subscription "<subscription>"
245245
```
246246

@@ -277,4 +277,4 @@ This guide walks you through accessing the output file that is created in the Cl
277277

278278
1. Select the output file from the run-read command. The file name can be identified from the `az rest --method get` command. Additionally, the **Last modified** timestamp aligns with when the command was executed.
279279

280-
1. You can manage & download the output file from the **Overview** pop-out.
280+
1. You can manage & download the output file from the **Overview** pop-out.

0 commit comments

Comments
 (0)