Cannot find SourceControlToken with name GitHub

Niraj 40 Reputation points
2023-08-23T21:47:51.44+00:00

I have an Azure Bicep file which creates an Azure Function App and Deploys code from a repository to that function app. When I run this file locally, it runs perfectly but when I run it on azure devops portal it throws the following error: Cannot find SourceControlToken with name GitHub on Azure Devops Portal. I'm using this to upload the code to app. The code works perfectly when I run it locally. But when I try to run this on the devops portal it throws error.

resource sourcecontrol 'Microsoft.Web/sites/sourcecontrols@2022-09-01' = {
  parent: azureFunction
  name: 'web'
  properties: {
    repoUrl: pRepoUrl
    branch: pBranchName
    isManualIntegration: true
  }
}


Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,300 questions
{count} votes