az webapp

Manage web apps.

Commands

az webapp auth Manage webapp authentication and authorization.
az webapp auth show Show the authentification settings for the webapp.
az webapp auth update Update the authentication settings for the webapp.
az webapp browse Open a web app in a browser.
az webapp config Configure a web app.
az webapp config appsettings Configure web app settings.
az webapp config appsettings delete Delete web app settings.
az webapp config appsettings list Get the details of a web app's settings.
az webapp config appsettings set Set a web app's settings.
az webapp config backup Manage backups for web apps.
az webapp config backup create Create a backup of a web app.
az webapp config backup list List backups of a web app.
az webapp config backup restore Restore a web app from a backup.
az webapp config backup show Show the backup schedule for a web app.
az webapp config backup update Configure a new backup schedule for a web app.
az webapp config connection-string Manage a web app's connection strings.
az webapp config connection-string delete Delete a web app's connection strings.
az webapp config connection-string list
az webapp config connection-string set Update a web app's connection strings.
az webapp config container Manage web app container settings.
az webapp config container delete Delete a web app container's settings.
az webapp config container set Set a web app container's settings.
az webapp config container show Get details of a web app container's settings.
az webapp config hostname Configure hostnames for a web app.
az webapp config hostname add Bind a hostname to a web app.
az webapp config hostname delete Unbind a hostname from a web app.
az webapp config hostname get-external-ip Get the external-facing IP address for a web app.
az webapp config hostname list List all hostname bindings for a web app.
az webapp config set Set a web app's configuration.
az webapp config show Get the details of a web app's configuration.
az webapp config ssl Configure SSL certificates for web apps.
az webapp config ssl bind Bind an SSL certificate to a web app.
az webapp config ssl delete Delete an SSL certificate from a web app.
az webapp config ssl list List SSL certificates for a web app.
az webapp config ssl unbind Unbind an SSL certificate from a web app.
az webapp config ssl upload Upload an SSL certificate to a web app.
az webapp create Create a web app.
az webapp delete Delete a web app.
az webapp deployment Manage web app deployments.
az webapp deployment container Manage container-based continuous deployment.
az webapp deployment container config Configure continuous deployment via containers.
az webapp deployment container show-cd-url Get the URL which can be used to configure webhooks for continuous deployment.
az webapp deployment list-publishing-profiles Get the details for available web app deployment profiles.
az webapp deployment slot Manage web app deployment slots.
az webapp deployment slot auto-swap Configure deployment slot auto swap.
az webapp deployment slot create Create a deployment slot.
az webapp deployment slot delete Delete a deployment slot.
az webapp deployment slot list List all deployment slots.
az webapp deployment slot swap Change deployment slots for a web app.
az webapp deployment source Manage web app deployment via source control.
az webapp deployment source config Manage deployment from git or Mercurial repositories.
az webapp deployment source config-local-git Get a URL for a git repository endpoint to clone and push to for web app deployment.
az webapp deployment source delete Delete a source control deployment configuration.
az webapp deployment source show Get the details of a source control deployment configuration.
az webapp deployment source sync Synchronize from the repository. Only needed under manual integration mode.
az webapp deployment source update-token Update source control token cached in Azure app service.
az webapp deployment user Manage user credentials for deployment.
az webapp deployment user set Update deployment credentials.
az webapp deployment user show Gets publishing user.
az webapp list List web apps.
az webapp list-runtimes List available built-in stacks which can be used for web apps.
az webapp log Manage web app logs.
az webapp log config Configure logging for a web app.
az webapp log download Download a web app's log history as a zip file.
az webapp log show Get the details of a web app's logging configuration.
az webapp log tail Start live log tracing for a web app.
az webapp restart Restart a web app.
az webapp show Get the details of a web app.
az webapp start Start a web app.
az webapp stop Stop a web app.
az webapp traffic-routing Manage traffic routing for web apps.
az webapp traffic-routing clear Clear the routing rules and send all traffic to production.
az webapp traffic-routing set Configure routing traffic to deployment slots.
az webapp traffic-routing show Display the current distribution of traffic across slots.

az webapp browse

Open a web app in a browser.

az webapp browse --name
--resource-group
[--logs]
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--logs -l
Enable viewing the log stream immediately after launching the web app.
--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp create

Create a web app.

az webapp create --name
--plan
--resource-group
[--deployment-container-image-name]
[--deployment-local-git]
[--deployment-source-branch]
[--deployment-source-url]
[--runtime]
[--startup-file]

Examples

Create a web app with the default configuration.

az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName

Create a web app with a NodeJS 6.2 runtime and deployed from a local git repository.

az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "node|6.2" --deployment-local-git

Required Parameters

--name -n
Name of the new webapp.
--plan -p
Name or resource id of the app service plan. Use 'appservice plan create' to get one.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--deployment-container-image-name -i
Linux only. Container image name from Docker Hub, e.g. publisher/image-name:tag.
--deployment-local-git -l
Enable local git.
--deployment-source-branch -b
The branch to deploy.
default value: master
--deployment-source-url -u
Git repository URL to link with manual integration.
--runtime -r
Canonicalized web runtime in the format of Framework|Version, e.g. "PHP|5.6". Use 'az webapp list-runtimes' for available list.
--startup-file
Linux only. The web's startup file.

az webapp delete

Delete a web app.

az webapp delete --name
--resource-group
[--keep-dns-registration]
[--keep-empty-plan]
[--keep-metrics]
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--keep-dns-registration
Keep DNS registration.
--keep-empty-plan
Keep empty app service plan.
--keep-metrics
Keep app metrics.
--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp list

List web apps.

az webapp list [--resource-group]

Examples

List default host name and state for all web apps.

az webapp list --query "[].{ hostName: defaultHostName, state: state }"

List all running web apps.

az webapp list --query "[?state=='Running']"

Optional Parameters

--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az webapp list-runtimes

List available built-in stacks which can be used for web apps.

az webapp list-runtimes [--linux]

Optional Parameters

--linux
List runtime stacks for linux based webapps.

az webapp restart

Restart a web app.

az webapp restart --name
--resource-group
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp show

Get the details of a web app.

az webapp show --name
--resource-group
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp start

Start a web app.

az webapp start --name
--resource-group
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.

az webapp stop

Stop a web app.

az webapp stop --name
--resource-group
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--slot -s
The name of the slot. Default to the productions slot if not specified.