你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az functionapp app

Note

此参考是 Azure CLI(版本 2.0.60 或更高版本)的 部署到 Azure 扩展的一部分。 该扩展将在首次运行 az functionapp app 命令时自动安装。 了解更多关于扩展的信息。

此命令组处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

用于管理 Azure Functions 应用的命令。

命令

名称 说明 类型 Status
az functionapp app up

通过 GitHub作部署到 Azure Functions。

Extension Preview

az functionapp app up

预览

命令组“functionapp app”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

通过 GitHub作部署到 Azure Functions。

az functionapp app up [--app-name]
                      [--branch-name]
                      [--do-not-wait]
                      [--repository]

示例

将 GitHub 存储库的 GitHub作部署到 Azure 函数 - 运行交互式模式

az functionapp app up

将本地签出 GitHub 存储库的 GitHub作部署到 Azure 函数

Repository name/url (--repository) will be detected from the local git repository
az functionapp app up --app-name AzFunctionPythonPreProd

将 GitHub 存储库的 GitHub作部署到 Azure 函数

az functionapp app up --app-name AzFunctionPythonPreProd --repository https://github.com/azure/deploy-functions

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--app-name

订阅中的 FunctionApp 名称。

--branch-name

要创建的新分支名称以签入文件并引发 PR。

--do-not-wait

不要等待工作流完成。

属性
默认值: False
--repository -r

GitHub 存储库 URL,例如 https://github.com/azure/azure-cli

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

增加日志记录详细程度。 使用 --debug 获取完整的调试日志。

属性
默认值: False