Microsoft.Web sourcecontrols

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@2022-09-01' = {
  name: 'string'
  kind: 'string'
  properties: {
    expirationTime: 'string'
    refreshToken: 'string'
    token: 'string'
    tokenSecret: 'string'
  }
}

Property values

sourcecontrols

Name Description Value
name The resource name string (required)
kind Kind of resource. string
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": "2022-09-01",
  "name": "string",
  "kind": "string",
  "properties": {
    "expirationTime": "string",
    "refreshToken": "string",
    "token": "string",
    "tokenSecret": "string"
  }
}

Property values

sourcecontrols

Name Description Value
type The resource type 'Microsoft.Web/sourcecontrols'
apiVersion The resource api version '2022-09-01'
name The resource name string (required)
kind Kind of resource. string
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

Terraform (AzAPI provider) resource definition

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

  • Tenants

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@2022-09-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      expirationTime = "string"
      refreshToken = "string"
      token = "string"
      tokenSecret = "string"
    }
    kind = "string"
  })
}

Property values

sourcecontrols

Name Description Value
type The resource type "Microsoft.Web/sourcecontrols@2022-09-01"
name The resource name string (required)
parent_id To deploy to a tenant, use /. string (required)
kind Kind of resource. string
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