gpt4 book ai didi

azure - 使用 AZ cli 命令在 Azure 中创建 Web 应用程序

转载 作者:行者123 更新时间:2023-12-03 05:21:05 26 4
gpt4 key购买 nike

   While creating webapps using Az cli in Azure, the command line have no option to mention the location parameter. However while creating from azure portal,there is a option where in we can select the region .

以下是命令的链接和命令本身 https://learn.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest

az webapp create --name
--plan
--resource-group
[--assign-identity]
[--deployment-container-image-name]
[--deployment-local-git]
[--deployment-source-branch]
[--deployment-source-url]
[--docker-registry-server-password]
[--docker-registry-server-user]
[--https-only {false, true}]
[--multicontainer-config-file]
[--multicontainer-config-type {COMPOSE, KUBE}]
[--role]
[--runtime]
[--scope]
[--startup-file]
[--subnet]
[--tags]
[--vnet]


最佳答案

您可以使用az webapp up CLI 命令有一个 location 开关,例如

az webapp up -n MyUniqueAppName --runtime "java:11:Java SE:11" -l locationName

顺便说一句,如果您在使用 az webapp create 时甚至没有指定位置,它将默认为“资源组”区域,或者如果您指定应用服务计划,则该区域将正在使用中

关于azure - 使用 AZ cli 命令在 Azure 中创建 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72387221/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com