Skip to content

Commit 499c7bb

Browse files
Merge pull request #299264 from eak13/main
Add Limitations sections
2 parents 513601b + 581d67f commit 499c7bb

File tree

1 file changed

+34
-19
lines changed

1 file changed

+34
-19
lines changed

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

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,37 @@
11
---
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
66
ms.service: azure-operator-nexus
77
ms.topic: how-to
8-
ms.date: 04/18/2025
8+
ms.date: 05/02/2025
99
ms.custom: template-how-to, devx-track-azurecli
1010
---
1111

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`
1313

1414
> [!CAUTION]
1515
> 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.
1616
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>`.
1818

1919
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:
2020

2121
- 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)
2424
- The keyset is expired (in which case all users in the keyset are invalid)
2525

2626
> [!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.
2828
2929
The keyset and each individual user also have detailed status messages communicating other information:
3030

3131
- The keyset's detailedStatusMessage tells you whether the keyset is expired, and other information about problems encountered while updating the keyset across the cluster.
3232
- 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.
3333

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.
4035

4136
## Prerequisites
4237

@@ -53,9 +48,29 @@ The BMCs support a maximum number of 12 users. Users are defined on a per Cluste
5348
> Operator Nexus software upgrades. If an upgrade is known to be in progress, you can use the `--no-wait`
5449
> option with the command to prevent the command prompt from waiting for the process to complete.
5550
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
5772

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.
5974

6075
The command syntax is:
6176

@@ -176,7 +191,7 @@ az networkcloud cluster bmckeyset create \
176191

177192
For assistance in creating the `--user-list` structure, see [Azure CLI Shorthand](https://github.com/Azure/azure-cli/blob/dev/doc/shorthand_syntax.md).
178193

179-
## Deleting a BMC keyset
194+
## Deleting a BMC Keyset
180195

181196
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.
182197

0 commit comments

Comments
 (0)