A script is being used to apply an initial template where a container is set to stopped followed by another CLI command to apply a new deployment manifest JSON. The second command is applied after a few local system processes conclude.
sudo az iot edge set-modules --hub-name "$IOT_HUB_NAME" --device-id "$DEVICE_ID" --content "$manifestFileStopped" --only-show-error -o table
sudo az iot edge set-modules --hub-name "$IOT_HUB_NAME" --device-id "$DEVICE_ID" --content "$manifestFileRunning" --only-show-error -o table
The second command does not change the state of the container module to running no certain virtual machines. Has anyone else encountered a similar issue?

