az functionapp devops-pipeline

Azure Function specific integration with Azure DevOps. Please visit https://aka.ms/functions-azure-devops for more information.

Commands

az functionapp devops-pipeline create

Create an Azure DevOps pipeline for a function app.

az functionapp devops-pipeline create

Create an Azure DevOps pipeline for a function app.

az functionapp devops-pipeline create [--allow-force-push {false, true}]
                                      [--functionapp-name]
                                      [--github-pat]
                                      [--github-repository]
                                      [--organization-name]
                                      [--overwrite-yaml {false, true}]
                                      [--project-name]
                                      [--repository-name]
                                      [--subscription]

Examples

create an Azure Pipeline to a function app.

az functionapp devops-pipeline create --functionapp-name FunctionApp

create an Azure Pipeline from a Github function app repository.

az functionapp devops-pipeline create --github-repository GithubOrganization/GithubRepository --github-pat GithubPersonalAccessToken

create an Azure Pipeline with specific Azure DevOps organization and project

az functionapp devops-pipeline create --organization-name AzureDevOpsOrganization --project-name AzureDevOpsProject

Optional Parameters

--allow-force-push

If Azure DevOps repository is not clean, should it overwrite remote content?

accepted values: false, true
--functionapp-name

Name of the Azure function app that you want to use.

--github-pat

Github personal access token for creating pipeline from Github repository.

--github-repository

Fullname of your Github repository (e.g. Azure/azure-cli).

--organization-name

Name of the Azure DevOps organization that you want to use.

--overwrite-yaml

If you have an existing yaml, should it be overwritten?

accepted values: false, true
--project-name

Name of the Azure DevOps project that you want to use.

--repository-name

Name of the Azure DevOps repository that you want to use.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.