How to configure continuous deployment from GitHub for Azure Functions in Bicep?

Denis Gontcharov 36 Reputation points
2022-10-06T14:31:01.49+00:00

Hello,

I have an Azure Function for which I configured continuous deployment from GitHub using the Deployment Center in the Azure Portal:

248171-image.png

I now want to replicate this configuration with infrastructure-as-code using using Bicep. In the resource type Microsoft.Web/sites@2021-03-01 I only found the scmType property that I set to GitHub. But I haven't found an option to specify the repository and branch.

The goal is to automatically pull the code for the function from GitHub into my function app whenever I deploy my bicep files to Azure.

How can I specify the GitHub repository and branch in Bicep?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Denis Gontcharov 36 Reputation points
    2022-10-06T15:51:55.193+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.