Skip to content

Commit c1d994e

Browse files
authored
Merge pull request #200406 from andrewbrownmsft/andbrown060322
Adding references to hash generation
2 parents c8f8921 + 26e2bb4 commit c1d994e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/iot-hub-device-update/import-schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Update payload file, e.g. binary, firmware, script, etc. Must be unique within u
282282
|---|---|---|---|
283283
|**filename**|`string`|Update payload file name.|Yes|
284284
|**sizeInBytes**|`number`|File size in number of bytes.|Yes|
285-
|**hashes**|`fileHashes`|Base64-encoded file hashes with algorithm name as key. At least SHA-256 algorithm must be specified, and additional algorithm may be specified if supported by agent.|Yes|
285+
|**hashes**|`fileHashes`|Base64-encoded file hashes with algorithm name as key. At least SHA-256 algorithm must be specified, and additional algorithm may be specified if supported by agent. See below for details on how to calculate the hash. |Yes|
286286

287287
Additional properties are not allowed.
288288

@@ -314,7 +314,7 @@ File hashes.
314314

315315
### fileHashes object
316316

317-
Base64-encoded file hashes with algorithm name as key. At least SHA-256 algorithm must be specified, and additional algorithm may be specified if supported by agent. For an example of how to calculate the hash correctly, see the [AduUpdate.psm1 script](https://github.com/Azure/iot-hub-device-update/blob/main/tools/AduCmdlets/AduUpdate.psm1).
317+
Base64-encoded file hashes with algorithm name as key. At least SHA-256 algorithm must be specified, and additional algorithm may be specified if supported by agent. For an example of how to calculate the hash correctly, see the Get-AduFileHashes function in [AduUpdate.psm1 script](https://github.com/Azure/iot-hub-device-update/blob/main/tools/AduCmdlets/AduUpdate.psm1).
318318

319319
**Properties**
320320

0 commit comments

Comments
 (0)