azure-iot-edge

Is there a way to enforce inter-module dependencies/initialization order?

梦想的初衷 提交于 2020-05-24 04:59:10
问题 Using Azure IoT Edge, I have not found any way to guarantee the initialization order of containers/modules in a deployment. Suppose for example, I have 2 modules, A and B. A is a server and B is a client that depends on A. As far as I know, there's no way to guarantee that A starts up before B does. The Azure IoT Edge deployment templates conform to the Docker Engine API, and I could not find any way to enforce dependencies through that API. As a workaround, I make no assumptions about which

c# Azure IOT Edge Auto-provision with Device Provisioning Service(DPS) with x509 certificate sample needed

痴心易碎 提交于 2019-12-24 22:58:59
问题 I'm new to azure IOT edge development. I'm looking for a way to Create and provision a simulated x509 certificate Edge device on Windows in c#. Is Trusted Platform Module (TPM) the only way right now with edge device? I found this tutorial but it's for simulated TPM Edge device on Windows. https://docs.microsoft.com/en-ca/azure/iot-edge/how-to-auto-provision-simulated-device-windows any idea how to do provision a device with x509 certificate? and a x509 certificate group enrollment? Chuck 回答1

Azure IoT Edge module log location

断了今生、忘了曾经 提交于 2019-12-23 12:44:21
问题 Where are the logs exposed by the iotedge logs <container> command stored? Where would that be generally on Linux? 回答1: Simply do a docker inspect <Container ID> and under LogPath you will get the current location of the container. E.g. for EdgeHub on my machine: LogPath : /var/lib/docker/containers/f8ecdf408f94f5627ac635223ce89dd9b1433705f342d548e09863cedf0fc950/f8ecdf408f94f5627ac635223ce89dd9b1433705f342d548e09863cedf0fc950-json.log 回答2: By default, they are stored in /var/lib/docker

Raspberry PI / IOTEdge failing to pull from Azure Container Registry

拜拜、爱过 提交于 2019-12-11 19:55:05
问题 I have an IOTEdge device (Rapi3) and IotEdgeHub and IotEdgeagent are deployed and running. I have successfully built and deployed images (custom-vision example) to ACR and have configured Access Keys in the portal. I've added the respective credentials to my .env file. The deployment.json has been deployed using Create deployment for single device . Within IotAgent logs I can see a series of 500 errors: Executing command for operation ["create"] failed. Microsoft.Azure.Devices.Edge.Agent

How can computation on an IotEdge module be triggered from within a .net core app?

最后都变了- 提交于 2019-12-11 07:57:59
问题 I need to trigger some computation on an IotEdge module from an Administration-Backend Application. On https://docs.microsoft.com/en-us/azure/iot-edge/module-development it says Currently, a module cannot receive cloud-to-device messages So it seems that calling direct methods seems to be the way to go. How can I implement a direct method and trigger it from within a .NET Core App? 回答1: In Main or Init Method of your IotEdge module you have to create a ModuleClient and connect it to a

Create IOT Device Edge Python Sdk

梦想与她 提交于 2019-12-11 03:04:49
问题 How can create IOT Edge Device? Actually i use azure sdk service iot and created normal device, but i can't figure out how create iot edge device with azure service client sdk. 回答1: It would be similar to how you create a normal device, only difference is that you need to add a capabilities property: { deviceId: "EdgeDevice1", capabilities: { iotEdge: true } } You could also refer to the code: https://github.com/Microsoft/vscode-azure-iot-toolkit/blob/4bfff9cb24cf5f7b42728640c4ed30bf2cda4253

Mount path to Azure IoT Edge module

送分小仙女□ 提交于 2019-12-07 19:00:03
问题 I followed the example from the documentation https://docs.microsoft.com/en-us/azure/iot-edge/how-to-develop-python-module and was playing around a bit. I tried to mount a path into the IoT module container like I would do in docker but I didn't succeed. I added the following to the createOptions in the deployments.template.json: "createOptions": { "Volumes": { "D:\\test":"/test" } } This results in a RUNTIME RESPONSE: 400 - The deployment configuration is malformed or invalid. My questions:

Mount path to Azure IoT Edge module

元气小坏坏 提交于 2019-12-06 11:59:25
I followed the example from the documentation https://docs.microsoft.com/en-us/azure/iot-edge/how-to-develop-python-module and was playing around a bit. I tried to mount a path into the IoT module container like I would do in docker but I didn't succeed. I added the following to the createOptions in the deployments.template.json: "createOptions": { "Volumes": { "D:\\test":"/test" } } This results in a RUNTIME RESPONSE: 400 - The deployment configuration is malformed or invalid. My questions: Is it even possible to mount a path from the host to IoTEdge modules like one would do in docker? If