python-3.x - 在 Visual Studio Code 上使用 Python 创建 Azure 函数以触发队列

标签 python-3.x python-2.7 azure-functions azure-function-app azure-queues

我正在努力

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.

有人可以帮忙吗?

最佳答案

Create a Azure function in Python on Visual Studio Code to trigger queue.

1、Azure Functions开发主要需要两个东西:语言环境和Azure Functions核心工具。

总步骤:

https://learn.microsoft.com/en-us/azure/developer/python/tutorial-vs-code-serverless-python-01

2、没有简单的方法可以从azure队列存储中获取消息。本文档将告诉您每个步骤和基本概念:

https://learn.microsoft.com/en-us/azure/storage/queues/storage-quickstart-queues-python

Get data from queue and save messages from queue in sql server using python.

与其他简单的Python脚本一样,您可以按照以下步骤操作:

https://datatofish.com/how-to-connect-python-to-sql-server-using-pyodbc/

从队列获取消息并将消息放入sql数据库的代码需要放入函数体中。

关于python-3.x - 在 Visual Studio Code 上使用 Python 创建 Azure 函数以触发队列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63226244/

相关文章:

dependency-injection - 如何使用 Azure Durable Functions 访问注入(inject)类中的 DurableEntityClient

由于 VM 镜像中已弃用 .NET Core 3.1 版本,Azure 构建管道失败

python - 如何让 "python http.server"在 Arch Linux 中工作

python - 为什么我的输出是 0?

python - 解码包含双黑斜杠的 Python Unicode 字符串

python - 用 Pillow 保存在内存文件对象中

Azure Functions - StorageBlob 使用 CloudBlockBlob 而不是 Stream 触发方法签名

python-3.x - 如何在 tkinter 中使特定文本不可删除?

python - WxPython 将选择转换为数值 TypeError

python - 如何从 node-red 打开 CV2.frame 窗口? - 执行脚本到 UI 应用程序