使用VS Code中的Azure Function扩展创建C#函数
配置环境
- 具有有效订阅的Azure账户。
- 安装Azure Functions Core Tools 3.x
注意:根据官方介绍,Azure Functions Core Tools当前依赖于Azure CLI来通过Azure账户进行身份验证,所以要先安装 Azure CLI;而安装Azure CLI时,可能会弹出关于python 3.8的警告,这是因为本地缺少Apple Command Line Tools,可以顺便一起安装。(本示例在Mac上创建)
Warning: Building python@3.8 from source:
The bottle needs the Apple Command Line Tools to be installed.
You can install them, if desired, with:
xcode-select --install
- 已安装VS Code.
- VS Code的C#扩展。

本文详细介绍了如何在Visual Studio Code中配置环境,使用Azure Functions扩展创建C#函数,包括设置Azure账户,安装必备工具,创建本地项目,本地运行函数,登录Azure并发布项目到云端,最后展示发布成功后函数在Azure中的运行状态。

477

被折叠的 条评论
为什么被折叠?



