【发布时间】:2020-08-03 08:39:19
【问题描述】:
我正在尝试
Create a Azure function in Python on Visual Studio Code to trigger queue.
我也在尝试
Get data from queue and save messages from queue in sql server using python.
谁能帮忙?
【问题讨论】:
-
更多详情,请按照“部署无服务器 Azure Functions”下的这些步骤操作。:docs.microsoft.com/en-us/azure/developer/python/…
-
需要将连接sql db等部分放在azure函数体中,与普通python脚本基本相同。如果你有代码工作,你可以检查并把它放在 azure 函数的主体中。
-
这应该满足你的要求了:datatofish.com/how-to-connect-python-to-sql-server-using-pyodbc 告诉你如何连接以及如何使用python中的sql语句。
-
好的,但是 azure 函数没有像绑定这样的简单方法来输入队列消息。请稍等,我给你一些简单的代码。
-
这应该更有帮助:docs.microsoft.com/en-us/azure/storage/queues/… 它会告诉你一些基本概念。如果您有任何问题,请告诉我。
标签: python-3.x python-2.7 azure-functions azure-function-app azure-queues