Search code examples
azureazure-iot-hubazure-iot-edge

How to Restart Azure iotedge service from inside a python module


I am working on a solution where I have to restart the azure edge runtime if one issue arrives inside the container.

Generally, the way to restart the azure iotedge service is, to run the bellow command in the host terminal

sudo ststemctl restart iotedge 

how to achieve this inside of the container?


Solution

  • The solution that i have found for this solution is - https://learn.microsoft.com/en-us/answers/questions/40541/rebooting-edge-device-remotely.html