Skip to content

Commit 2658cb2

Browse files
initial draft
1 parent fce856a commit 2658cb2

File tree

1 file changed

+44
-42
lines changed

1 file changed

+44
-42
lines changed

articles/operator-nexus/howto-bare-metal-best-practices.md

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -125,58 +125,60 @@ Message=[SYS043: Successfully exported Server Configuration Profile]
125125
Percent Complete=[100]
126126
```
127127

128-
#### Monitor progress using `run-read-command`
128+
#### Monitor status in Bare Metal Machine JSON properties
129129

130-
In version 2506.2 and above, you can monitor the progress of long running Bare Metal Machine actions using a `run-read-command`.
130+
In version 2509.1 and above, you can view the status of any recent or in progress actions in the `JSON View` of the corresponding Bare Metal Machine (Operator Nexus) resource. This shows the following information in the Bare Metal Machine JSON properties, when using API Version `2025-07-01-preview` or higher.
131131

132-
- Some long running actions such as `Replace` or `Reimage` are composed of multiple steps, for example, `Hardware Validation`, `Deprovisioning`, or `Provisioning`.
133-
- The following `run-read-command` shows how to view the different steps in each action, and the progress or status of each step including any potential errors.
134-
- This information is available on the BareMetalMachine kubernetes resource during or after the action is completed.
135-
- For more information about the `run-read-command` feature, see [BareMetal Run-Read Execution](./howto-baremetal-run-read.md).
132+
- Start and end time of the action.
133+
- Status of the action (e.g., `Succeeded`, `Failed`, `InProgress`).
134+
- Any additional context or error message associated with the status.
135+
- The Correlation ID for the original action request, as shown in the Azure Activity Log for the resource.
136+
- The detailed steps included in the action, such as `Hardware Validation`, `Deprovisioning`, `Provisioning` and `Cloud Init` for a BMM Replace action.
136137

137-
Example `run-read-command` to view action progress on Bare Metal Machine `rack2compute08`:
138-
139-
```azurecli
140-
az networkcloud baremetalmachine run-read-command \
141-
-g <ResourceGroup_Name> \
142-
-n <Control Node BMM Name> \
143-
--limit-time-seconds 60 \
144-
--commands "[{command:'kubectl get',arguments:[-n,nc-system,bmm,rack2compute08,-o,json]}]" \
145-
--output-directory .
146-
```
138+
The most recent (or currently in progress) occurrence of each action type is shown (Replace, Reimage, Restart etc).
147139

148140
Example output for a Replace action:
149141

150142
```json
151-
[
152-
{
153-
"correlationId": "961a6154-4342-4831-9693-27314671e6a7",
154-
"endTime": "2025-05-15T21:20:44Z",
155-
"startTime": "2025-05-15T20:16:19Z",
156-
"status": "Completed",
157-
"stepStates": [
158-
{
159-
"endTime": "2025-05-15T20:25:51Z",
160-
"name": "Hardware Validation",
161-
"startTime": "2025-05-15T20:16:19Z",
162-
"status": "Completed"
163-
},
164-
{
165-
"endTime": "2025-05-15T20:26:21Z",
166-
"name": "Deprovisioning",
167-
"startTime": "2025-05-15T20:25:51Z",
168-
"status": "Completed"
169-
},
143+
{
144+
"properties": {
145+
"actionStates": [
170146
{
171-
"endTime": "2025-05-15T21:20:44Z",
172-
"name": "Provisioning",
173-
"startTime": "2025-05-15T20:26:21Z",
174-
"status": "Completed"
147+
"actionType": "Microsoft.NetworkCloud/bareMetalMachines/replace",
148+
"correlationId": "25d678cb-353c-41f4-8231-1135064ae582",
149+
"endTime": "2025-08-12T17:00:58Z",
150+
"startTime": "2025-08-12T15:32:12Z",
151+
"status": "Completed",
152+
"stepStates": [
153+
{
154+
"endTime": "2025-08-12T15:41:22Z",
155+
"startTime": "2025-08-12T15:32:12Z",
156+
"status": "Completed",
157+
"stepName": "Hardware Validation"
158+
},
159+
{
160+
"endTime": "2025-08-12T16:25:39Z",
161+
"startTime": "2025-08-12T15:41:22Z",
162+
"status": "Completed",
163+
"stepName": "Deprovisioning"
164+
},
165+
{
166+
"endTime": "2025-08-12T16:48:27Z",
167+
"startTime": "2025-08-12T16:25:39Z",
168+
"status": "Completed",
169+
"stepName": "Provisioning"
170+
},
171+
{
172+
"endTime": "2025-08-12T17:00:58Z",
173+
"startTime": "2025-08-12T16:48:27Z",
174+
"status": "Completed",
175+
"stepName": "Cloud Init"
176+
}
177+
]
175178
}
176-
],
177-
"type": "Microsoft.NetworkCloud/bareMetalMachines/replace"
179+
]
178180
}
179-
]
181+
}
180182
```
181183

182184
## Best practices for a Bare Metal Machine reimage

0 commit comments

Comments
 (0)