Configure "Deployment Center" Integration to DevOps Using ARM/bicep

Ben 61 Reputation points
2023-07-14T17:29:46.0466667+00:00

Hello,

In the Azure portal, an Azure Function can be configured to have a CI/CD integration with DevOps under section "Deployment Center".User's image

This is great...but instead of manually configuring this, I'd like to be able to set it up using an ARM or bicep template. However, I haven't been able to figure out the syntax to use.

 Can anyone point me to an ARM/bicep example for tying an Azure Function to DevOps?

 Thanks!

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

Accepted answer
  1. AirGordon 6,950 Reputation points
    2023-07-15T08:40:38.8766667+00:00

    You need to deploy the sourcecontrols resource.

    It facilitates the binding to the underlying repositories, "Deployment Center" in the Portal.

    You should set these properties;

    repoUrl: 'https://{PAT}@{org_name}.visualstudio.com/_git/{your_repo}'
    branch: 'main'
    isManualIntegration: false
    

0 additional answers

Sort by: Most helpful