Share via


az functionapp devops-pipeline

Note

This reference is part of the functionapp extension for the Azure CLI (version 2.0.46 or higher). The extension will automatically install the first time you run an az functionapp devops-pipeline command. Learn more about extensions.

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

Commands

Name Description Type Status
az functionapp devops-pipeline create

Create an Azure DevOps pipeline for a function app.

Extension GA

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]

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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.