az functionapp deployment source

Manage function app deployment via source control.

Commands

az functionapp deployment source config Manage deployment from git or Mercurial repositories.
az functionapp deployment source config-local-git Get a URL for a git repository endpoint to clone and push to for function app deployment.
az functionapp deployment source delete Delete a source control deployment configuration.
az functionapp deployment source show Get the details of a source control deployment configuration.
az functionapp deployment source sync Synchronize from the 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

Manage deployment from 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=<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

az functionapp deployment source config-local-git

Get a URL for a git repository endpoint to clone and push to for function app deployment.

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

Examples

Get an endpoint and add it as a git 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=<name>`.

az functionapp deployment source delete

Delete a source control deployment configuration.

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

az functionapp deployment source show

Get the details of a source control deployment configuration.

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

az functionapp deployment source sync

Synchronize from the 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=<name>`.

az functionapp deployment source update-token

Update source control token cached in Azure app service.

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

Optional Parameters

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