Microsoft.Web sites/slots/sourcecontrols 2021-01-15

Bicep リソース定義

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

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

リソース形式

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

resource symbolicname 'Microsoft.Web/sites/slots/sourcecontrols@2021-01-15' = {
  name: 'web'
  kind: 'string'
  parent: resourceSymbolicName
  properties: {
    branch: 'string'
    deploymentRollbackEnabled: bool
    gitHubActionConfiguration: {
      codeConfiguration: {
        runtimeStack: 'string'
        runtimeVersion: 'string'
      }
      containerConfiguration: {
        imageName: 'string'
        password: 'string'
        serverUrl: 'string'
        username: 'string'
      }
      generateWorkflowFile: bool
      isLinux: bool
    }
    isGitHubAction: bool
    isManualIntegration: bool
    isMercurial: bool
    repoUrl: 'string'
  }
}

プロパティ値

sites/slots/sourcecontrols

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
'web'
kind リソースの種類。 string
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部にある子リソース」を参照してください。
種類のリソースのシンボル名: slots
properties SiteSourceControl リソース固有のプロパティ SiteSourceControlProperties

SiteSourceControlProperties

名前 説明
分岐 デプロイに使用するブランチの名前。 string
deploymentRollbackEnabled true デプロイのロールバックを有効にするには、それ以外の場合は false [bool]
gitHubActionConfiguration [GitHub アクション] が選択されている場合は、関連付けられている構成よりも。 GitHubActionConfiguration
isGitHubAction true これが GitHub アクションを使用してデプロイされる場合は 。 [bool]
isManualIntegration true 手動統合に制限する場合。 false 継続的インテグレーションを有効にするには (GitHub などのオンライン リポジトリに Webhook を構成します)。 [bool]
isMercurial true Mercurial リポジトリの場合は 。 false Git リポジトリの場合は 。 [bool]
repoUrl リポジトリまたはソース管理 URL。 string

GitHubActionConfiguration

名前 説明
codeConfiguration GitHub Action コードの構成。 GitHubActionCodeConfiguration
containerConfiguration GitHub Action コンテナーの構成。 GitHubActionContainerConfiguration
generateWorkflowFile ワークフロー ファイルを生成してリポジトリに書き込む必要があるかどうかを判断するワークフロー オプション。 [bool]
isLinux これは、選択するワークフロー構成を決定するのに役立ちます。 [bool]

GitHubActionCodeConfiguration

名前 説明
runtimeStack ランタイム スタックは、コード ベース アプリのワークフロー ファイルコンテンツを決定するために使用されます。 string
runtimeVersion ランタイム バージョンは、ワークフロー ファイルで設定するビルド バージョンを決定するために使用されます。 string

GitHubActionContainerConfiguration

名前 説明
imageName ビルドのイメージ名。 string
password イメージをコンテナー レジストリにアップロードするために使用されるパスワード。 string
serverUrl ビルドがホストされるコンテナー レジストリのサーバー URL。 string
username イメージをコンテナー レジストリにアップロードするために使用されるユーザー名。 string

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

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

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

リソース形式

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

{
  "type": "Microsoft.Web/sites/slots/sourcecontrols",
  "apiVersion": "2021-01-15",
  "name": "web",
  "kind": "string",
  "properties": {
    "branch": "string",
    "deploymentRollbackEnabled": "bool",
    "gitHubActionConfiguration": {
      "codeConfiguration": {
        "runtimeStack": "string",
        "runtimeVersion": "string"
      },
      "containerConfiguration": {
        "imageName": "string",
        "password": "string",
        "serverUrl": "string",
        "username": "string"
      },
      "generateWorkflowFile": "bool",
      "isLinux": "bool"
    },
    "isGitHubAction": "bool",
    "isManualIntegration": "bool",
    "isMercurial": "bool",
    "repoUrl": "string"
  }
}

プロパティ値

sites/slots/sourcecontrols

名前 説明
type リソースの種類 'Microsoft.Web/sites/slots/sourcecontrols'
apiVersion リソース API のバージョン '2021-01-15'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
'web'
kind リソースの種類。 string
properties SiteSourceControl リソース固有のプロパティ SiteSourceControlProperties

SiteSourceControlProperties

名前 説明
分岐 デプロイに使用するブランチの名前。 string
deploymentRollbackEnabled true デプロイのロールバックを有効にするには、それ以外の場合は false [bool]
gitHubActionConfiguration GitHub Action が選択されている場合は、関連付けられている構成よりも。 GitHubActionConfiguration
isGitHubAction true GitHub アクションを使用してデプロイされる場合は 。 [bool]
isManualIntegration true 手動統合に制限する場合。 false 継続的インテグレーションを有効にするには (Webhook を GitHub などのオンライン リポジトリに構成します)。 [bool]
isMercurial true Mercurial リポジトリの場合。 false Git リポジトリの場合は 。 [bool]
repoUrl リポジトリまたはソース管理 URL。 string

GitHubActionConfiguration

名前 説明
codeConfiguration GitHub Action コードの構成。 GitHubActionCodeConfiguration
containerConfiguration GitHub Action コンテナーの構成。 GitHubActionContainerConfiguration
generateWorkflowFile ワークフロー ファイルを生成してリポジトリに書き込むかどうかを決定するワークフロー オプション。 [bool]
isLinux これは、選択するワークフロー構成を決定するのに役立ちます。 [bool]

GitHubActionCodeConfiguration

名前 説明
runtimeStack ランタイム スタックは、コード ベース アプリのワークフロー ファイルの内容を決定するために使用されます。 string
runtimeVersion ランタイム バージョンは、ワークフロー ファイルで設定するビルド バージョンを決定するために使用されます。 string

GitHubActionContainerConfiguration

名前 説明
imageName ビルドのイメージ名。 string
password イメージをコンテナー レジストリにアップロードするために使用されるパスワード。 string
serverUrl ビルドがホストされるコンテナー レジストリのサーバー URL。 string
username イメージをコンテナー レジストリにアップロードするために使用されるユーザー名。 string

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

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

  • リソース グループ

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

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/sites/slots/sourcecontrols@2021-01-15"
  name = "web"
  parent_id = "string"
  body = jsonencode({
    properties = {
      branch = "string"
      deploymentRollbackEnabled = bool
      gitHubActionConfiguration = {
        codeConfiguration = {
          runtimeStack = "string"
          runtimeVersion = "string"
        }
        containerConfiguration = {
          imageName = "string"
          password = "string"
          serverUrl = "string"
          username = "string"
        }
        generateWorkflowFile = bool
        isLinux = bool
      }
      isGitHubAction = bool
      isManualIntegration = bool
      isMercurial = bool
      repoUrl = "string"
    }
    kind = "string"
  })
}

プロパティ値

sites/slots/sourcecontrols

名前 説明
type リソースの種類 "Microsoft.Web/sites/slots/sourcecontrols@2021-01-15"
name リソース名 "web"
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: スロット
kind リソースの種類。 string
properties SiteSourceControl リソース固有のプロパティ SiteSourceControlProperties

SiteSourceControlProperties

名前 説明
分岐 デプロイに使用するブランチの名前。 string
deploymentRollbackEnabled true デプロイのロールバックを有効にするには、それ以外の場合は false [bool]
gitHubActionConfiguration [GitHub アクション] が選択されている場合は、関連付けられている構成よりも。 GitHubActionConfiguration
isGitHubAction true これが GitHub アクションを使用してデプロイされる場合は 。 [bool]
isManualIntegration true 手動統合に制限する場合。 false 継続的インテグレーションを有効にするには (GitHub などのオンライン リポジトリに Webhook を構成します)。 [bool]
isMercurial true Mercurial リポジトリの場合は 。 false Git リポジトリの場合は 。 [bool]
repoUrl リポジトリまたはソース管理 URL。 string

GitHubActionConfiguration

名前 説明
codeConfiguration GitHub Action コードの構成。 GitHubActionCodeConfiguration
containerConfiguration GitHub Action コンテナーの構成。 GitHubActionContainerConfiguration
generateWorkflowFile ワークフロー ファイルを生成してリポジトリに書き込む必要があるかどうかを判断するワークフロー オプション。 [bool]
isLinux これは、選択するワークフロー構成を決定するのに役立ちます。 [bool]

GitHubActionCodeConfiguration

名前 説明
runtimeStack ランタイム スタックは、コード ベース アプリのワークフロー ファイルコンテンツを決定するために使用されます。 string
runtimeVersion ランタイム バージョンは、ワークフロー ファイルで設定するビルド バージョンを決定するために使用されます。 string

GitHubActionContainerConfiguration

名前 説明
imageName ビルドのイメージ名。 string
password イメージをコンテナー レジストリにアップロードするために使用されるパスワード。 string
serverUrl ビルドがホストされるコンテナー レジストリのサーバー URL。 string
username イメージをコンテナー レジストリにアップロードするために使用されるユーザー名。 string