Microsoft.Web sourcecontrols 2020-10-01

Bicep resource definition

The sourcecontrols resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/sourcecontrols resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Web/sourcecontrols@2020-10-01' = {
  kind: 'string'
  name: 'string'
  properties: {
    expirationTime: 'string'
    refreshToken: 'string'
    token: 'string'
    tokenSecret: 'string'
  }
}

Property values

Microsoft.Web/sourcecontrols

Name Description Value
kind Kind of resource. string
name The resource name string (required)
properties SourceControl resource specific properties SourceControlProperties

SourceControlProperties

Name Description Value
expirationTime OAuth token expiration. string
refreshToken OAuth refresh token. string
token OAuth access token. string
tokenSecret OAuth access token secret. string

ARM template resource definition

The sourcecontrols resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/sourcecontrols resource, add the following JSON to your template.

{
  "type": "Microsoft.Web/sourcecontrols",
  "apiVersion": "2020-10-01",
  "name": "string",
  "kind": "string",
  "properties": {
    "expirationTime": "string",
    "refreshToken": "string",
    "token": "string",
    "tokenSecret": "string"
  }
}

Property values

Microsoft.Web/sourcecontrols

Name Description Value
apiVersion The api version '2020-10-01'
kind Kind of resource. string
name The resource name string (required)
properties SourceControl resource specific properties SourceControlProperties
type The resource type 'Microsoft.Web/sourcecontrols'

SourceControlProperties

Name Description Value
expirationTime OAuth token expiration. string
refreshToken OAuth refresh token. string
token OAuth access token. string
tokenSecret OAuth access token secret. string

Terraform (AzAPI provider) resource definition

The sourcecontrols resource type can be deployed with operations that target:

  • Tenant

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Web/sourcecontrols resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/sourcecontrols@2020-10-01"
  name = "string"
  kind = "string"
  body = jsonencode({
    properties = {
      expirationTime = "string"
      refreshToken = "string"
      token = "string"
      tokenSecret = "string"
    }
  })
}

Property values

Microsoft.Web/sourcecontrols

Name Description Value
kind Kind of resource. string
name The resource name string (required)
properties SourceControl resource specific properties SourceControlProperties
type The resource type "Microsoft.Web/sourcecontrols@2020-10-01"

SourceControlProperties

Name Description Value
expirationTime OAuth token expiration. string
refreshToken OAuth refresh token. string
token OAuth access token. string
tokenSecret OAuth access token secret. string