azure function service 使用杂记

215 阅读1分钟

Quickstart: Create a JavaScript function in Azure using Visual Studio Code

Next steps

You have used Visual Studio Code to create a function app with a simple HTTP-triggered function. In the next article, you expand that function by connecting to either Azure Cosmos DB or Azure Storage. To learn more about connecting to other Azure services, see Add bindings to an existing function in Azure Functions. If you want to learn more about security, see Securing Azure Functions.

手动安装azure-functions-core-tools:

brew tap azure/functions

brew install azure-functions-core-tools@4

快速入门:在 Azure 中使用 Visual Studio Code 创建 JavaScript 函数

注意⚠️: 初次在本地运行 function 的时候,一定要使用debug 模式运行(.vscode/launch.json 默认已经配置好了),因为这个时候需要配置一个azure storage 什么的,直接启动不会有让你选择这个的提示,启动会不成功。

使用 Azure Functions 开发 Node.js 无服务器代码

JavaScript:使用 Azure 函数在 MongoDB 中存储数据

使用 Azure 函数将文件上传到 Azure Blob 存储