Hi there,
When I'm trying to update a module by using "Create deployment to single device" in VSC, it states Deployment succeeded. However on my device the module seems to keep running, and I don't see any changes in behavior until I completely reset IoT Edge.
What is required to force the module to re-run with the new deployed code? Or am I thinking about this whole process the wrong way?
Can you please provide some more information on the full container image names (including tags) you created before and after the deployment. The Edge Agent will only detect a change in image if the new image tag differs from the previous one. If both images are pushed with tag 'latest', the Edge Agent will not detect the change in deployment and will only pull the new image the next time IoT Edge is reset.
Oh that is based on meta info and not on changes in code itself? That would explain my case.
What is the recommended approach to do this via visual studio code? Up the version? Cause this feels like overkill during development.
Yes, please up the version. If you are using the VS Code extension, it can be changed in module.json. The Edge Agent cannot detect changes in code because the code is packaged inside a container. It detects a change in container based on the properties of the image.
Ok clear, thanks!
If I have a new or updated image for an existring module how can I update it manually though the Portal or something w/o using Visual Studio Code functionality ?
@dsajanice I am updating the version in the module.json file, yet still experiencing the issue which @nhuurnink described. Any advice?
Most helpful comment
If I have a new or updated image for an existring module how can I update it manually though the Portal or something w/o using Visual Studio Code functionality ?