支持 Azure Functions 离线

Support for Azure Functions Offline

有没有办法 运行 在没有连接的独立服务器盒中使用 Azure 功能? 我们的目标是调用在设置中预配置的 Azure 函数,我们希望在执行特定操作时调用 Azure 函数。

假设我有一个服务器盒,我将数据复制到其中,作为数据复制的一部分,我们需要执行某些预处理,并希望为此调用 Azure 函数。

您可以尝试将 Azure Functions 或 Webjobs 与存储模拟器一起使用,但它不受支持。

将来可能会提供此方案 - 它类似于 Azure Functions on Azure Stack,目前处于预览状态。

与使用用于开发目的的模拟器相比,您的另一个选择是利用 Azure IoT Edge,它是一个预览产品,适用于连接不总是可用或带宽是一个问题的场景.您可以在 https://azure.microsoft.com/en-us/campaigns/iot-edge/

了解更多信息

正如 Kyle 所提到的,Azure IoT Edge 允许您在本地设备中 运行 Azure Functions。 This tutorial walks you through installing the Azure IoT Edge runtime, and this tutorial 指导你将 Azure Functions 部署到你的边缘设备。