Azure / Azure-Functions

1.11k stars 196 forks source link

How to deploy Flex Consumption function from zip file? #2496

Closed xperiandri closed 1 month ago

xperiandri commented 3 months ago

There is no documentation at all on how to deploy Flex Consumption from CI. Can you fill that gap???

Juriyx commented 2 months ago

@pragnagopa, @nzthiago, @alexkarcher-msft Could you, please, comment on this?

xperiandri commented 2 months ago

We want to deploy them from the Azure DevOps CI pipeline

nzthiago commented 2 months ago

Hi @xperiandri - sorry I missed this question. The support for the Functions task for Azure DevOps is still under way, being implemented by @FinVamp1. The current workaround would be to deploy the zip file using the AZ CLI task, with the following command:

az functionapp deployment source config-zip -g <resourceGroup> -n <functionAppName> --src <pathToZipFile>
xperiandri commented 1 month ago

It works, thank you very much!

nzthiago commented 1 month ago

FYI - Flex Consumption is now supported by the Azure DevOps task. See the isFlexConsumption option for the Azure Functions Deploy v2 task https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-function-app-v2?view=azure-pipelines