New tools for restarting services and fixes

This commit is contained in:
Quentin WEPHRE
2025-06-27 08:40:36 +02:00
parent 856d7ecac3
commit d8df4365c3
7 changed files with 222 additions and 18 deletions

View File

@@ -16,8 +16,8 @@ hashmap=$(echo "$json_output" | jq -r 'map({key: .tags.number, value: .deviceId}
for key in $(echo "$hashmap" | jq -r 'keys | map(tonumber) | sort_by(.) | .[]'); do
value=$(jq -r --arg k "$key" '.[$k]' <<< "$hashmap")
az iot edge set-modules --device-id $value --hub-name $iothub_name --content moxa_ac_template_1.5_patch.json
print(value)
# az iot edge set-modules --device-id $value --hub-name $iothub_name --content moxa_ac_template_1.5_patch.json
done
echo $hashmap