az functionapp deployment source

Manage source control systems.

Commands

az functionapp deployment source config Associate to Git or Mercurial repositories.
az functionapp deployment source config-local-git Enable local git.
az functionapp deployment source delete Delete source control configurations.
az functionapp deployment source show Show source control configurations.
az functionapp deployment source sync Synchronize from the source repository, only needed under manual integration mode.
az functionapp deployment source update-token Update source control token cached in Azure app service.

az functionapp deployment source config

Associate to Git or Mercurial repositories.

az functionapp 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}]

Required Parameters

--name -n

Name of the function.

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

az functionapp deployment source config-local-git

Get an endpoint to clone and later push to the function app.

az functionapp deployment source config-local-git --name
--resource-group

Examples

Get a git endpoint for a web app and add it as a remote.

az functionapp 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 function.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

az functionapp deployment source delete

Delete source control configurations.

az functionapp deployment source delete --name
--resource-group

Required Parameters

--name -n

Name of the function.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

az functionapp deployment source show

Show source control configurations.

az functionapp deployment source show --name
--resource-group

Required Parameters

--name -n

Name of the function.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

az functionapp deployment source sync

Synchronize from the source repository, only needed under manual integration mode.

az functionapp deployment source sync --name
--resource-group

Required Parameters

--name -n

Name of the function.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=.

az functionapp deployment source update-token

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

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

Optional Parameters

--git-token

Git access token required for auto sync.