az functionapp
Note
此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 Learn more about extensions.
管理函数应用。 若要安装 Azure Functions Core 工具,请参阅 https://github.com/Azure/azure-functions-core-tools。
命令
az functionapp create
创建函数应用。
函数应用的名称必须能够生成唯一的 FQDN 作为 AppName.azurewebsites.net。
az functionapp create --name
--resource-group
--storage-account
[--always-ready-instances]
[--app-insights]
[--app-insights-key]
[--assign-identity]
[--cnl --configure-networking-later {false, true}]
[--consumption-plan-location]
[--cpu]
[--dal --dapr-enable-api-logging {false, true}]
[--dapr-app-id]
[--dapr-app-port]
[--dapr-http-max-request-size --dhmrs]
[--dapr-http-read-buffer-size --dhrbs]
[--dapr-log-level {debug, error, info, warn}]
[--deployment-container-image-name]
[--deployment-local-git]
[--deployment-source-branch]
[--deployment-source-url]
[--deployment-storage-auth-type --dsat {StorageAccountConnectionString, SystemAssignedIdentity, UserAssignedIdentity}]
[--deployment-storage-auth-value --dsav]
[--deployment-storage-container-name --dscn]
[--deployment-storage-name --dsn]
[--disable-app-insights {false, true}]
[--docker-registry-server-password]
[--docker-registry-server-user]
[--enable-dapr {false, true}]
[--environment]
[--flexconsumption-location]
[--functions-version {4}]
[--https-only {false, true}]
[--image]
[--instance-memory]
[--max-replicas]
[--maximum-instance-count]
[--memory]
[--min-replicas]
[--os-type {Linux, Windows}]
[--plan]
[--registry-password]
[--registry-server]
[--registry-username]
[--role]
[--runtime]
[--runtime-version]
[--scope]
[--subnet]
[--tags]
[--vnet]
[--workload-profile-name]
[--workspace]
[--zone-redundant {false, true}]
示例
创建基本函数应用。
az functionapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName -s MyStorageAccount
创建函数应用。 (autogenerated)
az functionapp create --consumption-plan-location westus --name MyUniqueAppName --os-type Windows --resource-group MyResourceGroup --runtime dotnet-isolated --storage-account MyStorageAccount
使用专用 ACR 映像创建函数应用。
az functionapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime node --storage-account MyStorageAccount --deployment-container-image-name myacr.azurecr.io/myimage:tag --docker-registry-server-password passw0rd --docker-registry-server-user MyUser
创建弹性消耗函数应用。 有关默认 http 并发值的详细信息,请参阅 https://aka.ms/flex-http-concurrency。
az functionapp create -g MyResourceGroup --name MyUniqueAppName -s MyStorageAccount --flexconsumption-location northeurope --runtime java --instance-memory 2048
必需参数
新函数应用的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
在提供的资源组中提供存储帐户的字符串值。 或不同资源组中存储帐户的资源 ID。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
<name>=<value>
格式的预分配实例数的空间分隔配置。
要添加到函数应用的现有 App Insights 项目的名称。 必须位于同一资源组中。
要添加的 App Insights 的检测密钥。
接受由空格分隔的系统或用户分配标识。 使用“[system]”来引用系统分配的标识,或使用资源 ID 来引用用户分配的标识。 请查看有关更多示例的帮助。
如果以后要使用网络受限存储为应用配置网络,请使用此选项。
属性 | 值 |
---|---|
接受的值: | false, true |
将托管函数应用的地理位置。 使用 az functionapp list-consumption-locations
查看可用位置。
容器应用核心中的 CPU。 e.g 0.75.
为 Dapr sidecar 启用/禁用 API 日志记录。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
Dapr 应用程序标识符。
Dapr 端口用于与应用程序通信。
请求正文 http 和 grpc 服务器的最大大小(以 MB 为单位)以处理大型文件的上传。
发送多 KB 标头时要处理的 http 标头读取缓冲区的最大大小(以 KB 为单位)。
Dapr sidecar 的日志级别。
属性 | 值 |
---|---|
接受的值: | debug, error, info, warn |
选项“--deployment-container-image-name”已弃用,将在将来的版本中删除。 请改用“--image”。
容器映像,例如 publisher/image-name:tag。
启用本地 git。
要部署的分支。
用于与手动集成链接的 Git 存储库 URL。
部署存储帐户身份验证类型。
属性 | 值 |
---|---|
接受的值: | StorageAccountConnectionString, SystemAssignedIdentity, UserAssignedIdentity |
部署存储帐户身份验证值。 对于用户分配的托管标识身份验证类型,这应该是用户分配的标识资源 ID。对于存储帐户连接字符串身份验证类型,这应该是将包含存储帐户连接字符串的应用设置的名称。 对于系统分配的托管标识身份验证类型,此参数不适用,应留空。
部署存储帐户容器名称。
部署存储帐户名称。
在 functionapp create 期间禁用创建 Application Insights 资源。 不会提供任何日志。
属性 | 值 |
---|---|
接受的值: | false, true |
选项“--docker-registry-server-password”已弃用,将在将来的版本中删除。 请改用“--registry-password”。
容器注册表服务器密码。 专用注册表是必需的。
选项“--docker-registry-server-user”已弃用,将在将来的版本中删除。 请改用“--registry-username”。
容器注册表服务器用户名。
在 Azure 容器应用环境中为函数应用启用/禁用 Dapr。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
容器应用环境的名称。
将托管函数应用的地理位置。 使用 az functionapp list-flexconsumption-locations
查看可用位置。
Functions 应用版本。 注意:从下一个发布周期开始,这是必需的。
属性 | 值 |
---|---|
接受的值: | 4 |
使用 HTTP 重定向到应用的所有流量到 HTTPS。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
容器映像,例如 publisher/image-name:tag。
实例内存大小(以 MB 为单位)。 有关支持的值的详细信息,请参阅 https://aka.ms/flex-instance-sizes。
在容器应用上创建函数应用时的最大副本数。
最大实例数。
容器应用的内存大小。 e.g. 1.0Gi,.
在容器应用上创建函数应用时,副本的最小数量。
设置要创建的应用的 OS 类型。
属性 | 值 |
---|---|
接受的值: | Linux, Windows |
functionapp 应用服务计划的名称或资源 ID。 使用“appservice plan create”获取一个。 如果使用不同的资源组中的应用服务计划,则必须使用完整的资源 ID,而不是计划名称。
容器注册表服务器密码。 专用注册表是必需的。
容器注册表服务器主机名,例如 myregistry.azurecr.io。
容器注册表服务器用户名。
系统分配的标识将具有的角色名称或 ID。
属性 | 值 |
---|---|
默认值: | Contributor |
函数运行时堆栈。 使用“az functionapp list-runtimes”检查支持的运行时和版本。
函数运行时堆栈的版本。 函数运行时堆栈。 使用“az functionapp list-runtimes”检查支持的运行时和版本。
系统分配的标识可以访问的范围。
要加入 webapp 的预先存在的子网的名称或资源 ID。 如果按名称指定子网,则还需要 --vnet 参数。
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
区域虚拟网络的名称或资源 ID。 如果不同资源组中有多个同名的 vnet,请使用 vnet 资源 ID 来指定要使用的 vnet。 如果使用 vnet 名称,则默认使用与 Web 应用相同的资源组中的 vnet。 必须与 --subnet 参数一起使用。
要在其中运行容器应用的工作负荷配置文件名称。
要用于 application Insights 组件的现有 Log Analytics 工作区的名称。
启用区域冗余以实现高可用性。 仅适用于弹性消耗 SKU。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp create (appservice-kube 扩展)
创建函数应用。
函数应用的名称必须能够生成唯一的 FQDN 作为 AppName.azurewebsites.net。
az functionapp create --name
--resource-group
[--app-insights]
[--app-insights-key]
[--assign-identity]
[--consumption-plan-location]
[--custom-location]
[--deployment-container-image-name]
[--deployment-local-git]
[--deployment-source-branch]
[--deployment-source-url]
[--disable-app-insights {false, true}]
[--docker-registry-server-password]
[--docker-registry-server-user]
[--functions-version {4}]
[--max-worker-count]
[--min-worker-count]
[--os-type {Linux, Windows}]
[--plan]
[--role]
[--runtime]
[--runtime-version]
[--scope]
[--storage-account]
[--tags]
示例
创建基本函数应用。
az functionapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName -s MyStorageAccount
创建函数应用。 (autogenerated)
az functionapp create --consumption-plan-location westus --name MyUniqueAppName --os-type Windows --resource-group MyResourceGroup --runtime dotnet --storage-account MyStorageAccount
使用专用 ACR 映像创建函数应用。
az functionapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime node --storage-account MyStorageAccount --deployment-container-image-name myacr.azurecr.io/myimage:tag --docker-registry-server-password passw0rd --docker-registry-server-user MyUser
在应用服务 kubernetes 环境中创建函数应用
az functionapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName -s MyStorageAccount --custom-location /subscriptions/sub_id/resourcegroups/group_name/providers/microsoft.extendedlocation/customlocations/custom_location_name
在应用服务 kubernetes 环境和与自定义位置相同的资源组中创建函数应用
az functionapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName -s MyStorageAccount --custom-location custom_location_name
必需参数
函数应用的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
要添加到 Function App 的现有 App Insights 项目的名称。 必须位于同一资源组中。
要添加的 App Insights 的检测密钥。
接受由空格分隔的系统或用户分配标识。 使用“[system]”来引用系统分配的标识,或使用资源 ID 来引用用户分配的标识。 请查看有关更多示例的帮助。
将托管 Function App 的地理位置。 使用 az functionapp list-consumption-locations
查看可用位置。
自定义位置的名称或 ID。 对应用的不同资源组中的自定义位置使用 ID。
Linux only. Docker 中心的容器映像名称,例如 publisher/image-name:tag。
启用本地 git。
要部署的分支。
属性 | 值 |
---|---|
默认值: | master |
用于与手动集成链接的 Git 存储库 URL。
在 functionapp create 期间禁用创建 Application Insights 资源。 不会提供任何日志。
属性 | 值 |
---|---|
接受的值: | false, true |
容器注册表服务器密码。 专用注册表是必需的。
容器注册表服务器用户名。
Functions 应用版本。 使用“az functionapp list-runtimes”检查运行时和运行时版本的兼容性。
属性 | 值 |
---|---|
接受的值: | 4 |
要分配的最大辅助角色数。
要分配的最小辅助角色数。
设置要创建的应用的 OS 类型。
属性 | 值 |
---|---|
接受的值: | Linux, Windows |
函数应用服务计划的名称或资源 ID。 使用“appservice plan create”获取一个。
系统分配的标识将具有的角色名称或 ID。
属性 | 值 |
---|---|
默认值: | Contributor |
函数运行时堆栈。 使用“az functionapp list-runtimes”检查支持的运行时和版本。
函数运行时堆栈的版本。 使用“az functionapp list-runtimes”检查支持的运行时和版本。
系统分配的标识可以访问的范围。
在提供的资源组中提供存储帐户的字符串值。 或不同资源组中存储帐户的资源 ID。 非 kubernetes 函数应用所必需的。
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp delete
删除函数应用。
az functionapp delete [--ids]
[--keep-empty-plan]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
删除函数应用。 (autogenerated)
az functionapp delete --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
保留空的应用服务计划。
functionapp 的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp deploy
此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
将提供的项目部署到 Azure functionapp。
az functionapp deploy [--async {false, true}]
[--clean {false, true}]
[--ids]
[--ignore-stack {false, true}]
[--name]
[--resource-group]
[--restart {false, true}]
[--slot]
[--src-path]
[--src-url]
[--subscription]
[--target-path]
[--timeout]
[--type {ear, jar, lib, startup, static, war, zip}]
示例
异步部署战争文件。
az functionapp deploy --resource-group ResourceGroup --name AppName --src-path SourcePath --type war --async true
将静态文本文件部署到 wwwroot/staticfiles/test.txt
az functionapp deploy --resource-group ResourceGroup --name AppName --src-path SourcePath --type static --target-path staticfiles/test.txt
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Asynchronous deployment.
属性 | 值 |
---|---|
接受的值: | false, true |
如果为 true,在部署文件之前清理目标目录。 默认值是根据项目类型确定的。
属性 | 值 |
---|---|
接受的值: | false, true |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
如果为 true,则忽略任何特定于堆栈的默认值。
属性 | 值 |
---|---|
接受的值: | false, true |
要部署到的函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
如果为 true,则会在部署后重启 Web 应用,默认值为 true。 如果要部署多个项目,并且不想在先前的部署中重启站点,则将其设置为 false。
属性 | 值 |
---|---|
接受的值: | false, true |
槽的名称。 如果未指定,则默认为生产槽。
要部署的项目的路径。 例如:“myapp.zip”或“/myworkspace/apps/myapp.war”。
项目的 URL。 Web 应用将从此 URL 拉取项目。 例如:“http://mysite.com/files/myapp.war?key=123"。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
项目应部署到的绝对路径。 默认为“home/site/wwwroot/”。 例如:“/home/site/deployments/tools/”、“/home/site/scripts/startup-script.sh”。
部署操作的超时(以毫秒为单位)。
用于替代要部署的项目的类型。
属性 | 值 |
---|---|
接受的值: | ear, jar, lib, startup, static, war, zip |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp list
列出函数应用。
az functionapp list [--resource-group]
示例
列出 MyResourceGroup 中的所有函数应用。
az functionapp list --resource-group MyResourceGroup
列出所有函数应用的默认主机名和状态。
az functionapp list --query "[].{hostName: defaultHostName, state: state}"
列出所有正在运行的函数应用。
az functionapp list --query "[?state=='Running']"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp list-consumption-locations
列出运行函数应用的可用位置。
az functionapp list-consumption-locations
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp list-flexconsumption-locations
列出在 Flex Consumption 计划中运行函数应用的可用位置。
az functionapp list-flexconsumption-locations [--runtime]
[--show-details {false, true}]
[--zone-redundant {false, true}]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
将输出限制为仅指定运行时。
包括区域的运行时详细信息。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
筛选列表以仅返回支持区域冗余的位置。
属性 | 值 |
---|---|
默认值: | False |
接受的值: | false, true |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp list-flexconsumption-runtimes
列出可用于弹性消耗计划上的函数应用的可用内置堆栈。
az functionapp list-flexconsumption-runtimes --location
--runtime
必需参数
将输出限制为仅在指定位置可用的运行时。
将输出限制为仅指定运行时。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp list-runtimes
列出可用于函数应用的可用内置堆栈。
az functionapp list-runtimes [--os --os-type {linux, windows}]
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
将输出限制为仅 Windows 或 linux 运行时。
属性 | 值 |
---|---|
接受的值: | linux, windows |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp restart
重启函数应用。
az functionapp restart [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
重启函数应用。 (autogenerated)
az functionapp restart --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp restart (appservice-kube 扩展)
重启函数应用。
az functionapp restart [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
重启函数应用。 (autogenerated)
az functionapp restart --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp show
获取函数应用的详细信息。
az functionapp show [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
获取函数应用的详细信息。 (autogenerated)
az functionapp show --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp show (appservice-kube 扩展)
获取函数应用的详细信息。
az functionapp show [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
获取函数应用的详细信息。 (autogenerated)
az functionapp show --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp start
启动函数应用。
az functionapp start [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
启动函数应用。 (autogenerated)
az functionapp start --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp stop
停止函数应用。
az functionapp stop [--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
停止函数应用。 (autogenerated)
az functionapp stop --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az functionapp update
更新函数应用。
az functionapp update [--add]
[--force]
[--force-string]
[--ids]
[--name]
[--plan]
[--remove]
[--resource-group]
[--set]
[--slot]
[--subscription]
示例
更新函数应用。 (autogenerated)
az functionapp update --name MyFunctionApp --resource-group MyResourceGroup
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>
。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | [] |
如果尝试将 functionapp 从 Premium 迁移到消耗 --plan,则是必需的。
属性 | 值 |
---|---|
默认值: | False |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | False |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
函数应用的名称。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
要更新 functionapp 的计划的名称或资源 ID。
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | [] |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>
。
属性 | 值 |
---|---|
Parameter group: | Generic Update Arguments |
默认值: | [] |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |