次の方法で共有


containerApps/sourcecontrols の Microsoft.App

Bicep リソース定義

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

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

リソースの形式

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

resource symbolicname 'Microsoft.App/containerApps/sourcecontrols@2025-10-02-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    branch: 'string'
    githubActionConfiguration: {
      azureCredentials: {
        clientId: 'string'
        clientSecret: 'string'
        kind: 'string'
        subscriptionId: 'string'
        tenantId: 'string'
      }
      buildEnvironmentVariables: [
        {
          name: 'string'
          value: 'string'
        }
      ]
      contextPath: 'string'
      dockerfilePath: 'string'
      githubPersonalAccessToken: 'string'
      image: 'string'
      os: 'string'
      publishType: 'string'
      registryInfo: {
        registryPassword: 'string'
        registryUrl: 'string'
        registryUserName: 'string'
      }
      runtimeStack: 'string'
      runtimeVersion: 'string'
    }
    repoUrl: 'string'
  }
}

プロパティ値

Microsoft.App/containerApps/sourcecontrols

名前 説明 価値
名前 リソース名 string (必須)
Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「親リソースの外部 子リソース」を参照してください。
種類のリソースのシンボリック名: containerApps
プロパティ SourceControl リソース固有のプロパティ SourceControlProperties の

Azureの資格情報

名前 説明 価値
クライアントID クライアント ID。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
クライアントシークレット クライアント シークレット。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
種類 テンプレートをデプロイするために github が行う認証の種類 文字列
サブスクリプションID サブスクリプション ID。 文字列
テナントID テナント ID。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。

EnvironmentVariable

名前 説明 価値
名前 環境変数の名前。 string (必須)
value 環境変数の値。 string (必須)

GithubActionConfiguration (英語)

名前 説明 価値
azureCredentials の AzureCredentials の構成。 Azureの資格情報
buildEnvironment変数 ビルドに渡す環境変数の一覧。 EnvironmentVariable[]
コンテキストパス コンテキスト パス 文字列
dockerfileパス Dockerfile パス 文字列
githubPersonalAccessトークン Github 環境を構成するための Github PAT の 1 回限り

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
イメージ イメージ名 文字列
オス オペレーション システム 文字列
パブリッシュタイプ コードまたはイメージ 文字列
レジストリ情報 レジストリ構成。 レジストリ情報
ランタイムスタック ランタイム スタック (実行時スタック) 文字列
ランタイムバージョン ランタイム バージョン 文字列

レジストリ情報

名前 説明 価値
レジストリパスワード レジストリ シークレット。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
レジストリURL レジストリ サーバーの URL。 文字列
レジストリユーザー名 レジストリ ユーザー名。 文字列

SourceControlProperties (ソースコントロールプロパティ)

名前 説明 価値
ブランチ 自動デプロイをトリガーするブランチ 文字列
githubActionConfiguration の 可能なすべての設定と
ユーザーが指定しなかった場合は既定値です。 既定値が設定されます
作成時と同じ
GithubActionConfiguration を する
リポジトリURL ContainerApp に統合されるリポジトリ URL。 文字列

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

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

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

リソースの形式

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

{
  "type": "Microsoft.App/containerApps/sourcecontrols",
  "apiVersion": "2025-10-02-preview",
  "name": "string",
  "properties": {
    "branch": "string",
    "githubActionConfiguration": {
      "azureCredentials": {
        "clientId": "string",
        "clientSecret": "string",
        "kind": "string",
        "subscriptionId": "string",
        "tenantId": "string"
      },
      "buildEnvironmentVariables": [
        {
          "name": "string",
          "value": "string"
        }
      ],
      "contextPath": "string",
      "dockerfilePath": "string",
      "githubPersonalAccessToken": "string",
      "image": "string",
      "os": "string",
      "publishType": "string",
      "registryInfo": {
        "registryPassword": "string",
        "registryUrl": "string",
        "registryUserName": "string"
      },
      "runtimeStack": "string",
      "runtimeVersion": "string"
    },
    "repoUrl": "string"
  }
}

プロパティ値

Microsoft.App/containerApps/sourcecontrols

名前 説明 価値
apiVersion (英語) API のバージョン '2025-10-02-プレビュー'
名前 リソース名 string (必須)
プロパティ SourceControl リソース固有のプロパティ SourceControlProperties の
リソースの種類 「Microsoft.App/containerApps/sourcecontrols」

Azureの資格情報

名前 説明 価値
クライアントID クライアント ID。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
クライアントシークレット クライアント シークレット。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
種類 テンプレートをデプロイするために github が行う認証の種類 文字列
サブスクリプションID サブスクリプション ID。 文字列
テナントID テナント ID。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。

EnvironmentVariable

名前 説明 価値
名前 環境変数の名前。 string (必須)
value 環境変数の値。 string (必須)

GithubActionConfiguration (英語)

名前 説明 価値
azureCredentials の AzureCredentials の構成。 Azureの資格情報
buildEnvironment変数 ビルドに渡す環境変数の一覧。 EnvironmentVariable[]
コンテキストパス コンテキスト パス 文字列
dockerfileパス Dockerfile パス 文字列
githubPersonalAccessトークン Github 環境を構成するための Github PAT の 1 回限り

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
イメージ イメージ名 文字列
オス オペレーション システム 文字列
パブリッシュタイプ コードまたはイメージ 文字列
レジストリ情報 レジストリ構成。 レジストリ情報
ランタイムスタック ランタイム スタック (実行時スタック) 文字列
ランタイムバージョン ランタイム バージョン 文字列

レジストリ情報

名前 説明 価値
レジストリパスワード レジストリ シークレット。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
レジストリURL レジストリ サーバーの URL。 文字列
レジストリユーザー名 レジストリ ユーザー名。 文字列

SourceControlProperties (ソースコントロールプロパティ)

名前 説明 価値
ブランチ 自動デプロイをトリガーするブランチ 文字列
githubActionConfiguration の 可能なすべての設定と
ユーザーが指定しなかった場合は既定値です。 既定値が設定されます
作成時と同じ
GithubActionConfiguration を する
リポジトリURL ContainerApp に統合されるリポジトリ URL。 文字列

使用例

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

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

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

リソースの形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/containerApps/sourcecontrols@2025-10-02-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      branch = "string"
      githubActionConfiguration = {
        azureCredentials = {
          clientId = "string"
          clientSecret = "string"
          kind = "string"
          subscriptionId = "string"
          tenantId = "string"
        }
        buildEnvironmentVariables = [
          {
            name = "string"
            value = "string"
          }
        ]
        contextPath = "string"
        dockerfilePath = "string"
        githubPersonalAccessToken = "string"
        image = "string"
        os = "string"
        publishType = "string"
        registryInfo = {
          registryPassword = "string"
          registryUrl = "string"
          registryUserName = "string"
        }
        runtimeStack = "string"
        runtimeVersion = "string"
      }
      repoUrl = "string"
    }
  }
}

プロパティ値

Microsoft.App/containerApps/sourcecontrols

名前 説明 価値
名前 リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: containerApps
プロパティ SourceControl リソース固有のプロパティ SourceControlProperties の
リソースの種類 「Microsoft.App/containerApps/sourcecontrols@2025-10-02-preview」

Azureの資格情報

名前 説明 価値
クライアントID クライアント ID。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
クライアントシークレット クライアント シークレット。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
種類 テンプレートをデプロイするために github が行う認証の種類 文字列
サブスクリプションID サブスクリプション ID。 文字列
テナントID テナント ID。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。

EnvironmentVariable

名前 説明 価値
名前 環境変数の名前。 string (必須)
value 環境変数の値。 string (必須)

GithubActionConfiguration (英語)

名前 説明 価値
azureCredentials の AzureCredentials の構成。 Azureの資格情報
buildEnvironment変数 ビルドに渡す環境変数の一覧。 EnvironmentVariable[]
コンテキストパス コンテキスト パス 文字列
dockerfileパス Dockerfile パス 文字列
githubPersonalAccessトークン Github 環境を構成するための Github PAT の 1 回限り

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
イメージ イメージ名 文字列
オス オペレーション システム 文字列
パブリッシュタイプ コードまたはイメージ 文字列
レジストリ情報 レジストリ構成。 レジストリ情報
ランタイムスタック ランタイム スタック (実行時スタック) 文字列
ランタイムバージョン ランタイム バージョン 文字列

レジストリ情報

名前 説明 価値
レジストリパスワード レジストリ シークレット。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。
レジストリURL レジストリ サーバーの URL。 文字列
レジストリユーザー名 レジストリ ユーザー名。 文字列

SourceControlProperties (ソースコントロールプロパティ)

名前 説明 価値
ブランチ 自動デプロイをトリガーするブランチ 文字列
githubActionConfiguration の 可能なすべての設定と
ユーザーが指定しなかった場合は既定値です。 既定値が設定されます
作成時と同じ
GithubActionConfiguration を する
リポジトリURL ContainerApp に統合されるリポジトリ URL。 文字列