az-webapp
Manage Azure App Service web applications
TLDR
Create web app
SYNOPSIS
az webapp command [options]
DESCRIPTION
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.
PARAMETERS
create
Create web applist
List web appsdelete
Delete web apprestart
Restart web appstop
Stop web appstart
Start web appshow
Show web app detailsbrowse
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")
COMMON OPERATIONS
az webapp create -g MyRG -p MyPlan -n MyApp --runtime "PYTHON:3.11"
# Deploy from zip
az webapp deployment source config-zip -g MyRG -n MyApp --src app.zip
# Set environment variables
az webapp config appsettings set -g MyRG -n MyApp --settings KEY=VALUE
# Enable logging
az webapp log config -g MyRG -n MyApp --application-logging filesystem --level information
# Stream logs
az webapp log tail -g MyRG -n MyApp
CAVEATS
Web app names must be globally unique (used in azurewebsites.net URL). Deployment slots require higher tier plans. Some runtimes not available in all regions. Costs vary by App Service plan tier.
HISTORY
az webapp has been part of Azure CLI since version 2.0 in 2017, replacing the older Azure CLI for managing App Service web apps.
SEE ALSO
az(1), az-functionapp(1), az-appservice(1)
