Azure IotEdge: What to do if runtime setup does no work?

You have executed runtime setup with following command:

iotedgectl setup --connection-string "HostName=hubname.azure-devices.net;DeviceId=devicename;SharedAccessKey=*****" --nopass

Unfortunately command fails with following error:

ERROR: Error deleting directory: C:\ProgramData\azure-iot-edge\data\certs\edge-device-ca. Errno: 13, Error: Access is denied

I have no idea why this happen, but you can work around this by deleting of following folders manually. Delet all subfolders of following folder:

C:\ProgramData\azure-iot-edge\data

comments powered by Disqus