Skip to content

adding rundataextractrestricted documentation #127485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions articles/operator-nexus/howto-baremetal-run-data-extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -711,3 +711,22 @@ The command provides a link (if using cluster manager storage) or another comman

> [!NOTE]
> Storage Account could be locked resulting in `403 This request is not authorized to perform this operation.` due to networking or firewall restrictions. Refer to the [cluster manager storage](#deprecated-method-verify-access-to-the-cluster-manager-storage-account) or the [user managed storage](#send-command-output-to-a-user-specified-storage-account) sections for procedures to verify access.

## Executing a run-data-restricted Command

The `run-data-extracts-restricted` produces an output file containing the results of the data extract. It differs by having RBAC restrictions enforced on users limiting which actions and commands they can execute. The allowed commands must be added individually in the role definition.

`run-data-extracts-restricted` is also limited in the subset of commands that it can perform. The current commands in the allowed restricted list are:

- `cluster-cve-report`
- `mde-agent-information`


```azurecli-interactive
az networkcloud baremetalmachine run-data-extracts-restricted --name "<machine-name>" \
--resource-group "<cluster_MRG>" \
--subscription "<subscription>" \
--commands '[{"arguments":["<arg1>","<arg2>"],"command":"<command1>"}]' \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we update the example to show one of the supported commands instead of just a generic argument?

Also, we should indicate the minimum API version requirements somewhere in this update as it won't be available without the 2025-07-01 Preview or 2025-09-01 GA API, right? Otherwise, it comes across as they can go run this now with any API version.

--limit-time-seconds "<timeout>"
--output-directory <output_directory>
```