从 azure 函数应用程序监视 azure 磁盘上的文件夹

Monitor a folder on an azure disk from an azure function app

我们有一个托管在 Azure VM 上的遗留应用程序,它会定期将文件输出到位于 Azure 磁盘上的文件共享 (SMB)。旧版应用不是 "Azure Aware",因此只能输出到共享。

旧应用程序在虚拟基础架构中运行,因此一切都在 azure 中并针对 azure 活动目录进行保护。

我正在尝试根据这些文件自动执行一些流程,因此希望能够在新文件到达时触发 azure 函数并读取该文件的内容。

是否可以从 azure 函数读取 azure 磁盘的内容?

目前 Azure 函数不支持文件系统triggers/bindings(因为你提到了 VM),可以查看支持的完整列表here. A workaround i'd suggest would be to use logic apps connector for Filesystems (supports Azure hosted VMs), the full documentation for this can be found here,然后你可以将函数添加到进程