Microsoft.Web sites/slots/sourcecontrols 2020-09-01

Template format

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

  "type": "Microsoft.Web/sites/slots/sourcecontrols",
  "apiVersion": "2020-09-01",
  "kind": "string",
  "systemData": {
    "createdBy": "string",
    "createdByType": "string",
    "lastModifiedAt": "string"
  "properties": {
    "repoUrl": "string",
    "branch": "string",
    "isManualIntegration": "boolean",
    "isGitHubAction": "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


In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
type enum Yes For JSON -sourcecontrols

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2020-09-01
kind string No Kind of resource.
systemData object No The system metadata relating to this resource. - SystemData object
properties object Yes SiteSourceControl resource specific properties - SiteSourceControlProperties object

SystemData object

Name Type Required Value
createdBy string No The identity that created the resource.
createdByType enum No The type of identity that created the resource. - User, Application, ManagedIdentity, Key
lastModifiedAt string No The timestamp of resource last modification (UTC)

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).
isGitHubAction boolean No true if this is deployed via GitHub action.
deploymentRollbackEnabled boolean No true to enable deployment rollback; otherwise, false.
isMercurial boolean No true for a Mercurial repository; false for a Git repository.