Microsoft.Web sites/slots/sourcecontrols 2018-02-01

Template format

To create a Microsoft.Web/sites/slots/sourcecontrols resource, add the following JSON to the resources section of your template.

{
  "name": "web",
  "type": "Microsoft.Web/sites/slots/sourcecontrols",
  "apiVersion": "2018-02-01",
  "kind": "string",
  "properties": {
    "repoUrl": "string",
    "branch": "string",
    "isManualIntegration": "boolean",
    "deploymentRollbackEnabled": "boolean",
    "isMercurial": "boolean"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Web/sites/slots/sourcecontrols object

Name Type Required Value
name string Yes web
-or-
{site-name}/{slot-name}/web
type enum Yes sourcecontrols
-or-
Microsoft.Web/sites/slots/sourcecontrols

See Set name and type for child resources.
apiVersion enum Yes 2018-02-01
kind string No Kind of resource.
properties object Yes SiteSourceControl resource specific properties - SiteSourceControlProperties object

SiteSourceControlProperties object

Name Type Required Value
repoUrl string No Repository or source control URL.
branch string No Name of branch to use for deployment.
isManualIntegration boolean No true to limit to manual integration; false to enable continuous integration (which configures webhooks into online repos like GitHub).
deploymentRollbackEnabled boolean No true to enable deployment rollback; otherwise, false.
isMercurial boolean No true for a Mercurial repository; false for a Git repository.