Linux command
az-webapp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create
az webapp create --resource-group [MyRG] --plan [MyPlan] --name [MyApp]
List
az webapp list
Deploy
az webapp deployment source config-local-git --name [MyApp] --resource-group [MyRG]
Browse
az webapp browse --name [MyApp] --resource-group [MyRG]
Show
az webapp log tail --name [MyApp] --resource-group [MyRG]
Restart
az webapp restart --name [MyApp] --resource-group [MyRG]
说明
az webapp manages Azure App Service web applications. It provides commands for creating, deploying, configuring, and monitoring web apps across multiple platforms including .NET, Node.js, Python, PHP, and Java. The command group enables full web application lifecycle management without using the portal.
参数
- create
- Create web app
- list
- List web apps
- delete
- Delete web app
- restart
- Restart web app
- stop
- Stop web app
- start
- Start web app
- show
- Show web app details
- browse
- Open web app in browser
- --resource-group, -g _name_
- Resource group name
- --name, -n _name_
- Web app name
- --plan, -p _name_
- App Service plan
- --runtime
- Runtime stack (e.g., "NODE:18-lts", "PYTHON:3.11")
FAQ
What is the az-webapp command used for?
az webapp manages Azure App Service web applications. It provides commands for creating, deploying, configuring, and monitoring web apps across multiple platforms including .NET, Node.js, Python, PHP, and Java. The command group enables full web application lifecycle management without using the portal.
How do I run a basic az-webapp example?
Run `az webapp create --resource-group [MyRG] --plan [MyPlan] --name [MyApp]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does create do in az-webapp?
Create web app