az webapp deployment source

Manage web app deployment via source control.

Commands

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 source config

Manage deployment from git or Mercurial repositories.

az webapp deployment source config --name
--repo-url
--resource-group
[--branch]
[--cd-account]
[--cd-account-must-exist]
[--cd-app-type {AspNetCore, AspNetWap, NodeJSWithGrunt, NodeJSWithGulp}]
[--cd-provider {kudu, vsts}]
[--git-token]
[--manual-integration]
[--repository-type {git, mercurial}]
[--slot]

Required Parameters

--name -n
Name of the web. You can configure the default using 'az configure --defaults web='.
--repo-url -u
Repository url to pull the latest source from, e.g. https://github.com/foo/foo-web.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--branch
The branch name of the repository.
--cd-account
Name of the Team Services account to create/use for continuous delivery.
--cd-account-must-exist
Specifies that the account must already exist. If not specified, the account will be created if it does not already exist (existing accounts are updated).
--cd-app-type
Web application framework you used to develop your app.
accepted values: AspNetCore, AspNetWap, NodeJSWithGrunt, NodeJSWithGulp
default value: AspNetWap
--cd-provider
Type of CI/CD provider.
accepted values: kudu, vsts
default value: kudu
--git-token
Git access token required for auto sync.
--manual-integration
Disable automatic sync between source control and web.
--repository-type
Repository type.
accepted values: git, mercurial
default value: git
--slot -s
The name of the slot. Default to the productions slot if not specified.

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 config-local-git --name
--resource-group
[--slot]

Examples

Get an endpoint and add it as a git remote.

az webapp source-control config-local-git     -g MyResourceGroup -n MyUniqueApp
                        
                        git remote add azure     https://@MyUniqueApp.scm.azurewebsites.net/MyUniqueApp.git

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 deployment source delete

Delete a source control deployment configuration.

az webapp deployment source delete --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 deployment source show

Get the details of a source control deployment configuration.

az webapp deployment source 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 deployment source sync

Synchronize from the repository. Only needed under manual integration mode.

az webapp deployment source sync --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 deployment source update-token

Update source control token cached in Azure app service.

az webapp deployment source update-token [--git-token]

Optional Parameters

--git-token
Git access token required for auto sync.