Skip to content

Commit dba060b

Browse files
Merge pull request #289147 from matternst7258/matternst7258/getpods-runread
[operator-nexus] Adds 'kubectl get pods' as an example to run-read co…
2 parents 508735f + 92858da commit dba060b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

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

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: Troubleshoot bare metal machine issues using the `az networkcloud baremetalmachine run-read-command` for Operator Nexus
33
description: Step by step guide on using the `az networkcloud baremetalmachine run-read-command` to run diagnostic commands on a BMM.
4-
author: eak13
5-
ms.author: ekarandjeff
4+
author: matternst7258
5+
ms.author: matthewernst
66
ms.service: azure-operator-nexus
77
ms.topic: how-to
8-
ms.date: 10/15/2024
8+
ms.date: 10/24/2024
99
ms.custom: template-how-to
1010
---
1111

@@ -365,6 +365,16 @@ When an optional argument `--output-directory` is provided, the output result is
365365
> [!WARNING]
366366
> Using the `--output-directory` argument will overwrite any files in the local directory that have the same name as the new files being created.
367367
368+
### This example executes a 'kubectl get pods'
369+
370+
```azurecli
371+
az networkcloud baremetalmachine run-read-command --name "<bareMetalMachineName>" \
372+
--limit-time-seconds 60 \
373+
--commands "[{command:'kubectl get',arguments:[pods,-n,nc-system]}]" \
374+
--resource-group "<cluster_MRG>" \
375+
--subscription "<subscription>"
376+
```
377+
368378
### This example executes the `hostname` command and a `ping` command
369379

370380
```azurecli

0 commit comments

Comments
 (0)