-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Adding externalgit as deployment source for functionapp via CLI does not work #28644
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botFunctionsaz functionappaz functionappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadazf_bugazf_reviewedbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botFunctionsaz functionappaz functionappService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadazf_bugazf_reviewedbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
We have a self hosted gitlab and want to provide all required resources for a functions app by using the Azure CLI.
The Functions app is created by using
az functionapp createcommand. After this I am executing the command to config the deployment source (see related command).It looks like, the CLI automatically uses
mercurialas git source, but I am usingexternalgit.Related command
Errors
Error message in the Azure Portal afterwards (in the logs of deployment sync):
In the UI of Azure Portal:
Issue script & Debug output
As a result of
az functionapp deployment source configin the terminal I receive the message:{ "branch": "deployment", "deploymentRollbackEnabled": false, "gitHubActionConfiguration": null, "id": "censored", "isGitHubAction": false, "isManualIntegration": true, "isMercurial": true, "kind": null, "location": "West Europe", "name": "censored", "repoUrl": "censored", "resourceGroup": "censored", "type": "Microsoft.Web/sites/sourcecontrols" }Expected behavior
When I add my external git source using the Azure Portal, I works perfectly and the UI looks like follows:
Environment Summary
azure-cli 2.55.0
Additional context
No response