Skip to content

Commit 6e676e6

Browse files
Merge pull request #246497 from btray900/btray900/add-mde-data-extract
[operator-nexus] Add information for MDE data extract command
2 parents 004e269 + 526b795 commit 6e676e6

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

articles/operator-nexus/howto-baremetal-run-data-extract.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Troubleshoot bare metal machine issues using the `az networkcloud baremet
33
description: Step by step guide on using the `az networkcloud baremetalmachine run-data-extract` to extract data from a bare metal machine for troubleshooting and diagnostic purposes.
44
author: eak13
55
ms.author: ekarandjeff
6-
ms.service: azure
6+
ms.service: azure-operator-nexus
77
ms.topic: how-to
88
ms.date: 05/15/2023
99
ms.custom: template-how-to
@@ -34,6 +34,10 @@ The current list of supported commands are
3434
- `TTYLog` - Storage TTYLog data
3535
- `Debug` - debug logs
3636

37+
- Collect Microsoft Defender for Endpoints (MDE) agent information\
38+
Command Name: `mde-agent-information`\
39+
Arguments: None
40+
3741
The command syntax is:
3842

3943
```azurecli-interactive
@@ -58,6 +62,16 @@ az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName"
5862
--limit-time-seconds 600
5963
```
6064

65+
This example executes the `mde-agent-information` command without arguments.
66+
67+
```azurecli
68+
az networkcloud baremetalmachine run-data-extract --name "bareMetalMachineName" \
69+
--resource-group "resourceGroupName" \
70+
--subscription "subscription" \
71+
--commands '[{"command":"mde-agent-information"}]' \
72+
--limit-time-seconds 600
73+
```
74+
6175
In the response, the operation performs asynchronously and returns an HTTP status code of 202. See the **Viewing the output** section for details on how to track command completion and view the output file.
6276

6377
## Viewing the output
@@ -89,3 +103,20 @@ Collection successfully exported to /hostfs/tmp/runcommand/hardware-support-data
89103
Script execution result can be found in storage account:
90104
https://cm2p9bctvhxnst.blob.core.windows.net/bmm-run-command-output/dd84df50-7b02-4d10-a2be-46782cbf4eef-action-bmmdataextcmd.tar.gz?se=2023-04-14T01%3A00%3A15Zandsig=ZJcsNoBzvOkUNL0IQ3XGtbJSaZxYqmtd%2BM6rmxDFqXE%3Dandsp=randspr=httpsandsr=bandst=2023-04-13T21%3A00%3A15Zandsv=2019-12-12
91105
```
106+
107+
Data is collected with the `mde-agent-information` command and formatted as JSON
108+
to `/hostfs/tmp/runcommand/mde-agent-information.json`. The JSON file is found
109+
in the data extract zip file located in the storage account.
110+
111+
```azurecli
112+
====Action Command Output====
113+
Executing mde-agent-information command
114+
MDE agent is running, proceeding with data extract
115+
Getting MDE agent information for bareMetalMachine
116+
Writing to /hostfs/tmp/runcommand
117+
118+
119+
================================
120+
Script execution result can be found in storage account:
121+
https://cmzhnh6bdsfsdwpbst.blob.core.windows.net/bmm-run-command-output/f5962f18-2228-450b-8cf7-cb8344fdss63b0-action-bmmdataextcmd.tar.gz?se=2023-07-26T19%3A07%3A22Z&sig=X9K3VoNWRFP78OKqFjvYoxubp65BbNTq%2BGnlHclI9Og%3D&sp=r&spr=https&sr=b&st=2023-07-26T15%3A07%3A22Z&sv=2019-12-12
122+
```

0 commit comments

Comments
 (0)