New tools for restarting services and fixes
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user