使用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#扩展。