0

I'm looking for a way to deploy an Azure Web App based on a public git repo containing a .NET, .NET Core, or Node service. However, I want to only use an ARM template to deploy the Web App.

So if I have a public repo that contains a .NET Core project (i.e., csproj and associated C# files), I want to deploy a Web App, using an ARM template, that will deploy from the repo. It seems like it's possible with the various options for continuous deployment, but I can't quite figure it out.

Erick T
  • 7,009
  • 9
  • 50
  • 85

1 Answers1

1

Yes it is, you need to define the sourcecontrol property of the webapp for that to happen, like in this example:

{
    "apiVersion": "2015-08-01",
    "name": "web",
    "type": "sourcecontrols",
    "dependsOn": [
        "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
    ],
    "properties": {
        "RepoUrl": "[parameters('repoURL')]",
        "branch": "[parameters('branch')]",
        "IsManualIntegration": true
    }
}
4c74356b41
  • 69,186
  • 6
  • 100
  • 141