Found the solution in the documentation: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/sourcecontrols?pivots=deployment-language-bicep
How to configure continuous deployment from GitHub for Azure Functions in Bicep?

Hello,
I have an Azure Function for which I configured continuous deployment from GitHub using the Deployment Center in the Azure Portal:
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?