Skip to content

Commit 1941a77

Browse files
committed
update patch command
1 parent d5a7b0c commit 1941a77

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

articles/firmware-analysis/firmware-analysis-integration-with-azure-device-registry.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,22 @@ To update your metadata fields in Firmware analysis, navigate to your firmware i
5858
To update your metadata fields in ADR for your ADR Devices, run the following command:
5959

6060
```azurecli
61-
az rest --method PATCH --url "https://management.azure.com/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.DeviceRegistry/namespaces/<NAMESPACE_NAME>/devices/<DEVICE_NAME>?api-version=2025-10-01%22 --body
62-
"{\"properties\":{\"manufacturer\":\"<NEW_VENDOR>\",\"model\":\"<NEW_MODEL>\",\"operatingSystemVersion\":\"<NEW_VERSION>\"}}"
61+
az rest --method patch \
62+
--url "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}?api-version={apiVersion}" \
63+
--headers "Content-Type=application/json" \
64+
--body "{
65+
\"properties\": {
66+
\"operatingSystemVersion\": \"{operatingSystemVersion}\",
67+
\"enabled\": {true|false}
68+
}
69+
}"
70+
```
71+
72+
To confirm that your metadata fields were updated as expected, run the following command:
73+
74+
```azurecli
75+
az rest --method get \
76+
--url "https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/namespaces/{namespaceName}/devices/{deviceName}?api-version={apiVersion}"
6377
```
6478

6579
To update your metadata fields in ADR for your ADR Assets, visit the Digital Operations Experience. For more information, see Manage resources in the operations experience UI - Azure IoT Operations.

0 commit comments

Comments
 (0)