Microsoft.Web sourcecontrols 2021-01-01

Bicep リソース定義

sourcecontrols リソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Web/sourcecontrols リソースを作成するには、次の Bicep をテンプレートに追加します。

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

プロパティ値

sourcecontrols

名前 説明
name リソース名 string (必須)
kind リソースの種類。 string
properties SourceControl リソース固有のプロパティ SourceControlProperties

SourceControlProperties

名前 説明
expirationTime OAuth トークンの有効期限。 string
refreshToken OAuth 更新トークン。 string
token OAuth アクセス トークン。 string
tokenSecret OAuth アクセス トークン シークレット。 string

ARM テンプレート リソース定義

sourcecontrols リソースの種類は、次をターゲットとする操作でデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Web/sourcecontrols リソースを作成するには、次の JSON をテンプレートに追加します。

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

プロパティ値

sourcecontrols

名前 説明
type リソースの種類 'Microsoft.Web/sourcecontrols'
apiVersion リソース API のバージョン '2021-01-01'
name リソース名 string (必須)
kind リソースの種類。 string
properties SourceControl リソース固有のプロパティ SourceControlProperties

SourceControlProperties

名前 説明
expirationTime OAuth トークンの有効期限。 string
refreshToken OAuth 更新トークン。 string
token OAuth アクセス トークン。 string
tokenSecret OAuth アクセス トークン シークレット。 string

Terraform (AzAPI プロバイダー) リソース定義

sourcecontrols リソースの種類は、次をターゲットとする操作でデプロイできます。

  • テナント

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Web/sourcecontrols リソースを作成するには、次の Terraform をテンプレートに追加します。

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

プロパティ値

sourcecontrols

名前 説明
type リソースの種類 "Microsoft.Web/sourcecontrols@2021-01-01"
name リソース名 string (必須)
parent_id テナントにデプロイするには、 を使用 /します。 string (必須)
kind リソースの種類。 string
properties SourceControl リソース固有のプロパティ SourceControlProperties

SourceControlProperties

名前 説明
expirationTime OAuth トークンの有効期限。 string
refreshToken OAuth 更新トークン。 string
token OAuth アクセス トークン。 string
tokenSecret OAuth アクセス トークン シークレット。 string