How to setup bitbucket pipelines to deploy azure function apps

Jusiah Katumba 41 Reputation points
2022-11-24T16:18:29.517+00:00

Hello,
How can i set up a bitbucket pipeline to develop,stage and deploy to production using yaml file.

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
255 questions
{count} votes

Accepted answer
  1. KarishmaTiwari-MSFT 18,442 Reputation points Microsoft Employee
    2022-12-01T05:24:24.047+00:00

    @Jusiah Katumba Thanks for posting your query on Microsoft Q&A.

    I was able to find this document on using a Bitbucket Pipelines Pipe that uses the Azure CLI to deploy a zipped code package to Azure Functions : https://bitbucket.org/microsoft/azure-functions-deploy/src/master/README.md

    It has the YAML to deploy the function code to Azure using a Bitbucket pipeline:

    YAML Definition:

    script:  
      - pipe: microsoft/azure-functions-deploy:1.0.2  
        variables:  
          AZURE_APP_ID: $AZURE_APP_ID  
          AZURE_PASSWORD: $AZURE_PASSWORD  
          AZURE_TENANT_ID: $AZURE_TENANT_ID  
          FUNCTION_APP_NAME: '<string>'  
          ZIP_FILE: '<string>'  
    

    This Readme also includes all the Azure CLI commands to create the required Azure resources like Service Principal, Function app etc.

    Please take a look at this if you haven't already and let me know in the comments if you have further questions.

    Thanks.

    ----------

    If this answers your query, do click “Accept the answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread.
    And, if you have any further query do let me know in the comments.


0 additional answers

Sort by: Most helpful