You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/operator-nexus/howto-baremetal-bmc-ssh.md
+34-19Lines changed: 34 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,42 +1,37 @@
1
1
---
2
-
title: Manage emergency access to a bare metal machine using the `az networkcloud cluster bmckeyset` command for Azure Operator Nexus
3
-
description: Step by step guide on using the `az networkcloud cluster bmckeyset` command to manage emergency access to a bare metal machine.
4
-
author: DanCrank
5
-
ms.author: danielcrank
2
+
title: Manage emergency access to a Bare Metal Machine using the `az networkcloud cluster bmckeyset` command for Azure Operator Nexus
3
+
description: Step by step guide on using the `az networkcloud cluster bmckeyset` command to manage emergency access to a Bare Metal Machine.
4
+
author: eak13
5
+
ms.author: ekarandjeff
6
6
ms.service: azure-operator-nexus
7
7
ms.topic: how-to
8
-
ms.date: 04/18/2025
8
+
ms.date: 05/02/2025
9
9
ms.custom: template-how-to, devx-track-azurecli
10
10
---
11
11
12
-
# Manage emergency access to a bare metal machine using the `az networkcloud cluster bmckeyset`
12
+
# Manage emergency access to a Bare Metal Machine using the `az networkcloud cluster bmckeyset`
13
13
14
14
> [!CAUTION]
15
15
> This process is used in emergency situations when all other troubleshooting options via Azure are exhausted. SSH access to these bare metal machines is restricted to users managed via this method from the specified jump host list.
16
16
17
-
There are rare situations where a user needs to investigate & resolve issues with a bare metal machine and all other ways using Azure are exhausted. Operator Nexus provides the `az networkcloud cluster bmckeyset` command so users can manage SSH access to the baseboard management controller (BMC) on these bare metal machines. On keyset creation, users are validated against Microsoft Entra ID for proper authorization by cross referencing the User Principal Name provided for a user against the supplied Azure Group ID `--azure-group-id <Entra Group ID>`.
17
+
There are rare situations where a user needs to investigate & resolve issues with a Bare Metal Machine and all other ways using Azure are exhausted. Operator Nexus provides the `az networkcloud cluster bmckeyset` command so users can manage SSH access to the baseboard management controller (BMC) on these bare metal machines. On keyset creation, users are validated against Microsoft Entra ID for proper authorization by cross referencing the User Principal Name provided for a user against the supplied Azure Group ID `--azure-group-id <Entra Group ID>`.
18
18
19
19
Users in a keyset are validated every four hours, and also when any changes are made to any keyset. Each user's status is then set to "Active" or "Invalid." Invalid users remain in the keyset but their keys are removed from all hosts and they aren't allowed access. Reasons for a user being invalid are:
20
20
21
21
- The user's User Principal Name isn't specified
22
-
- The user's User Principal Name isn't a member of the given Entra group
23
-
- The given Entra group doesn't exist (in which case all users in the keyset are invalid)
22
+
- The user's User Principal Name isn't a member of the given Microsoft Entra group
23
+
- The given Microsoft Entra group doesn't exist (in which case all users in the keyset are invalid)
24
24
- The keyset is expired (in which case all users in the keyset are invalid)
25
25
26
26
> [!NOTE]
27
-
> The User Principal Name is now required for keysets as Microsoft Entra ID validation is enforced for all users. Current keysets that don't specify User Principal Names for all users will continue to work until the expiration date. If a keyset without User Principal Names expires, the keyset will need to be updated with User Principal Names, for all users, in order to become valid again. Keysets that haven't been updated with the User Principal Names for all users before December 2024 are at-risk of being `Invalid`. Note that if any user fails to specify a User Principal Name this results in the entire keyset being invalidated.
27
+
> The User Principal Name is now required for keysets as Microsoft Entra ID validation is enforced for all users. Current keysets that don't specify User Principal Names for all users continue to work until the expiration date. If a keyset without User Principal Names expires, the keyset needs to be updated with User Principal Names, for all users, in order to become valid again. Keysets that weren't with the User Principal Names for all users before December 2024 are at-risk of being `Invalid`. If any user is missing the User Principal Name, it results in the entire keyset being invalidated.
28
28
29
29
The keyset and each individual user also have detailed status messages communicating other information:
30
30
31
31
- The keyset's detailedStatusMessage tells you whether the keyset is expired, and other information about problems encountered while updating the keyset across the cluster.
32
32
- The user's statusMessage tells you whether the user is active or invalid, and a list of machines that aren't yet updated to the user's latest active/invalid state. In each case, causes of problems are included if known.
33
33
34
-
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.
35
-
36
-
The BMCs support a maximum number of 12 users. Users are defined on a per Cluster basis and applied to each bare metal machine. Attempts to add more than 12 users results in an error. Delete a user before adding another one when 12 already exists.
37
-
38
-
> [!WARNING]
39
-
> Using an Entra Group ID with greater than 5,000 users isn't recommended. Reconciling a large number of users can result in timeouts, blocking access and causing login issues.
34
+
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.
40
35
41
36
## Prerequisites
42
37
@@ -53,9 +48,29 @@ The BMCs support a maximum number of 12 users. Users are defined on a per Cluste
53
48
> Operator Nexus software upgrades. If an upgrade is known to be in progress, you can use the `--no-wait`
54
49
> option with the command to prevent the command prompt from waiting for the process to complete.
55
50
56
-
## Creating a BMC keyset
51
+
## Limitations
52
+
53
+
### BMC Keyset User limitations
54
+
55
+
While the BMCs support a maximum number of 16 users, 5 are reserved for system use leaving 11 for BMC Keyset Users. BMC Keyset Users are defined on a per Cluster basis and applied to each Bare Metal Machine. Attempts to add more than 11 users results in an error. Delete a user before adding another one when 11 already exist.
56
+
57
+
Here's a mapping of the BMC slots to users.
58
+
59
+
| BMC Slot | User |
60
+
| ---------- | ----------------------------- |
61
+
| slots 1-5 | Reserved for System Use |
62
+
| slots 6-16 | Reserved for BMC Keyset Users |
63
+
64
+
> [!CAUTION]
65
+
> BMC users shouldn't be created or modified manually. Nexus fully manages the BMC users and their placement in the slots. Manual changes could cause the Bare Metal Machine to cease functioning and become unreachable. If there are questions, [contact support](https://portal.azure.com/?#blade/Microsoft_Azure_Support/HelpAndSupportBlade).
66
+
67
+
### Microsoft Entra group user limitations
68
+
69
+
Using a Microsoft Entra group ID with greater than 5,000 users isn't recommended. Reconciling a large number of users can result in time-outs, blocking access and causing sign-in issues.
70
+
71
+
## Creating a BMC Keyset
57
72
58
-
The `bmckeyset create` command creates SSH access to the bare metal machine in a Cluster for a group of users.
73
+
The `bmckeyset create` command creates SSH access to the Bare Metal Machine in a Cluster for a group of users.
59
74
60
75
The command syntax is:
61
76
@@ -176,7 +191,7 @@ az networkcloud cluster bmckeyset create \
176
191
177
192
For assistance in creating the `--user-list` structure, see [Azure CLI Shorthand](https://github.com/Azure/azure-cli/blob/dev/doc/shorthand_syntax.md).
178
193
179
-
## Deleting a BMC keyset
194
+
## Deleting a BMC Keyset
180
195
181
196
The `bmckeyset delete` command removes SSH access to the BMC for a group of users. All members of the group lose SSH access to any of the BMCs in the Cluster.
0 commit comments