az-webapp
Manage Azure App Service web applications
TLDR
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 browserdeploy
Deploy an artifact (zip, war, jar, static file) to the appssh
Open an interactive SSH session to a Linux web applist-runtimes
List supported runtime stacksup
Create and deploy from the current local directory (deprecated; prefer create + deploy)--resource-group, -g name
Resource group name--name, -n name
Web app name (globally unique)--plan, -p name
App Service plan name or resource ID--runtime, -r stack
Runtime stack (e.g., "NODE:20LTS", "PYTHON:3.12", "JAVA:21-java21"). Run `az webapp list-runtimes` for current values.--deployment-container-image-name, -i image
Container image to deploy (e.g., myregistry.azurecr.io/image:tag)
COMMON OPERATIONS
az webapp create -g MyRG -p MyPlan -n MyApp --runtime "PYTHON:3.12"
# Deploy from a zip artifact
az webapp deploy -g MyRG -n MyApp --src-path app.zip --type 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 the azurewebsites.net URL). Basic (SCM/publish-profile) authentication is disabled by default on new apps; enable it with `--basic-auth Enabled` or `az webapp auth` if your deployment tool needs it. Deployment slots require Standard tier or higher. Some runtimes are not available in all regions. Costs vary by App Service plan tier. `az webapp up` is deprecated; prefer `az webapp create` followed by `az webapp deploy`.
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), azure-cli(1), az-functionapp(1), az-appservice(1)
