简体   繁体   中英

How to run Azure Functions as IoT Edge Module on a Raspberry Pi?

I'm looking for someone who was able to follows the documentation of Microsoft ( https://docs.microsoft.com/en-us/azure/iot-edge/tutorial-deploy-function ) and Jon Gallant ( https://blog.jongallant.com/2017/11/azure-iot-edge-raspberrypi/ ) with success.

After following the whole documentation to get a working Azure Function on a Raspberry PI hosted in a docker container, the Function does not work and the edgeAgent log contains just an info that the Functions can't start. To find out what is happen, I setup the debug environment like described here: https://docs.microsoft.com/en-us/azure/iot-edge/how-to-vscode-debug-azure-function but nothing works. After hit the last F5 (as its described) I get the error, that the docker container does not exists.

Yes, Dariusz is right.

So, I went to check the status of Azure Functions Runtime and the good news is that they have now a version of their runtime for ARM. https://hub.docker.com/r/microsoft/azure-functions-runtime/tags/ for ARM. So, we just need to update our Binding and start publishing our image for Arm. I opened this GitHub Issue to rack the status: https://github.com/Azure/iot-edge/issues/485

UPDATE: We have release 1.0.0-preview022 that has ARM version for Function that works for raspberry pi! Let us know if you found any problem. We should be updating our VS Code Template soon.

As of today there is no Azure Functions image for ARM released. If you look at the docker hub url https://hub.docker.com/r/microsoft/azureiotedge-functions-binding/tags/ there are just Windows Nano container and Linux x64 container available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM