az webapp deployment source

Manage source control systems.

Commands

az webapp deployment source config Associate to Git or Mercurial repositories.
az webapp deployment source config-local-git Enable local git.
az webapp deployment source delete Delete source control configurations.
az webapp deployment source show Show source control configurations.
az webapp deployment source sync Synchronize from the source 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

Associate to 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=.

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 an endpoint to clone and later push to the web app.

az webapp deployment source config-local-git --name
--resource-group
[--slot]

Examples

Get a git endpoint for a web app and add it as a 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=.

Optional Parameters

--slot -s

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

az webapp deployment source delete

Delete source control configurations.

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=.

Optional Parameters

--slot -s

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

az webapp deployment source show

Show source control configurations.

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=.

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 source 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=.

Optional Parameters

--slot -s

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

az webapp deployment source update-token

If no token is provided, the command will clean up existing token.

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

Optional Parameters

--git-token

Git access token required for auto sync.