Search code examples
azureazure-functionscontinuous-deployment

Azure Function App - No continuous deployment setting for "Flex Consumption" hosting plan?


Azure Function Apps on "Consumption" and "Function Premium" hosting plan do have the option for continuous deployment and linking a Github repository.

I read that it's best practices to secure resources in one virtual network and, as "Consumption" hosting plan doesn't have the capability of using a vnet, I was looking out for the "Flex Consumption" Plan, which has this capability.

Unfortunately it doesn't show the continuous deployment settings under "Deployment". It only shows the configuration for basic authentication. Also when the resource is setup, continuous deployment doesn't show.

EDIT: Workaround for now is manually whitelisting datacenter of same region as described here Allow list IPs for Azure Function App on consumption tier

I'm wondering if this is a issue or if its by definition like this?


Solution

  • The Flex Consumption plan is currently in preview and as of now, there are few limitations when using this plan for function apps.

    Deployments:

    As mentioned in official MSDOC, deployment-related features such as Deployment slots, Continuous deployment using Azure DevOps Tasks (AzureFunctionApp@2), Continuous deployment using GitHub Actions (functions-action@v1) are not currently supported.

    enter image description here

    To configure deployment settings when you create your function app in the Flex Consumption plan, refer MSDOC:

    • Azure CLI
    • Visual Studio Code
    • Azure Portal=>Settings=>Deployment Settings

    enter image description here