Bicep リソース定義
containerApps/sourcecontrols リソースの種類は、次をターゲットとする操作と共にデプロイできます。
各 API バージョンで変更されたプロパティの一覧については、変更ログの
リソースの形式
Microsoft.App/containerApps/sourcecontrols リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.App/containerApps/sourcecontrols@2022-10-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
branch: 'string'
githubActionConfiguration: {
azureCredentials: {
clientId: 'string'
clientSecret: 'string'
subscriptionId: 'string'
tenantId: 'string'
}
contextPath: '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。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| クライアントシークレット | クライアント シークレット。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| サブスクリプションID | サブスクリプション ID。 | 文字列 |
| テナントID | テナント ID。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
GithubActionConfiguration (英語)
| 名前 | 説明 | 価値 |
|---|---|---|
| azureCredentials の | AzureCredentials の構成。 | Azureの資格情報 |
| コンテキストパス | コンテキスト パス | 文字列 |
| イメージ | イメージ名 | 文字列 |
| オス | オペレーション システム | 文字列 |
| パブリッシュタイプ | コードまたはイメージ | 文字列 |
| レジストリ情報 | レジストリ構成。 | レジストリ情報 |
| ランタイムスタック | ランタイム スタック (実行時スタック) | 文字列 |
| ランタイムバージョン | ランタイム バージョン | 文字列 |
レジストリ情報
| 名前 | 説明 | 価値 |
|---|---|---|
| レジストリパスワード | レジストリ シークレット。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| レジストリURL | レジストリ サーバーの URL。 | 文字列 |
| レジストリユーザー名 | レジストリ ユーザー名。 | 文字列 |
SourceControlProperties (ソースコントロールプロパティ)
| 名前 | 説明 | 価値 |
|---|---|---|
| ブランチ | 自動デプロイをトリガーするブランチ | 文字列 |
| githubActionConfiguration の | 可能なすべての設定と ユーザーが指定しなかった場合は既定値です。 既定値が設定されます 作成時と同じ |
GithubActionConfiguration を |
| リポジトリURL | ContainerApp に統合されるリポジトリ URL。 | 文字列 |
ARM テンプレート リソース定義
containerApps/sourcecontrols リソースの種類は、次をターゲットとする操作と共にデプロイできます。
各 API バージョンで変更されたプロパティの一覧については、変更ログの
リソースの形式
Microsoft.App/containerApps/sourcecontrols リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.App/containerApps/sourcecontrols",
"apiVersion": "2022-10-01",
"name": "string",
"properties": {
"branch": "string",
"githubActionConfiguration": {
"azureCredentials": {
"clientId": "string",
"clientSecret": "string",
"subscriptionId": "string",
"tenantId": "string"
},
"contextPath": "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 のバージョン | '2022-10-01' |
| 名前 | リソース名 | string (必須) |
| プロパティ | SourceControl リソース固有のプロパティ | SourceControlProperties の |
| 型 | リソースの種類 | 「Microsoft.App/containerApps/sourcecontrols」 |
Azureの資格情報
| 名前 | 説明 | 価値 |
|---|---|---|
| クライアントID | クライアント ID。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| クライアントシークレット | クライアント シークレット。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| サブスクリプションID | サブスクリプション ID。 | 文字列 |
| テナントID | テナント ID。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
GithubActionConfiguration (英語)
| 名前 | 説明 | 価値 |
|---|---|---|
| azureCredentials の | AzureCredentials の構成。 | Azureの資格情報 |
| コンテキストパス | コンテキスト パス | 文字列 |
| イメージ | イメージ名 | 文字列 |
| オス | オペレーション システム | 文字列 |
| パブリッシュタイプ | コードまたはイメージ | 文字列 |
| レジストリ情報 | レジストリ構成。 | レジストリ情報 |
| ランタイムスタック | ランタイム スタック (実行時スタック) | 文字列 |
| ランタイムバージョン | ランタイム バージョン | 文字列 |
レジストリ情報
| 名前 | 説明 | 価値 |
|---|---|---|
| レジストリパスワード | レジストリ シークレット。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| レジストリ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@2022-10-01"
name = "string"
parent_id = "string"
body = {
properties = {
branch = "string"
githubActionConfiguration = {
azureCredentials = {
clientId = "string"
clientSecret = "string"
subscriptionId = "string"
tenantId = "string"
}
contextPath = "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@2022-10-01」 |
Azureの資格情報
| 名前 | 説明 | 価値 |
|---|---|---|
| クライアントID | クライアント ID。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| クライアントシークレット | クライアント シークレット。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| サブスクリプションID | サブスクリプション ID。 | 文字列 |
| テナントID | テナント ID。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
GithubActionConfiguration (英語)
| 名前 | 説明 | 価値 |
|---|---|---|
| azureCredentials の | AzureCredentials の構成。 | Azureの資格情報 |
| コンテキストパス | コンテキスト パス | 文字列 |
| イメージ | イメージ名 | 文字列 |
| オス | オペレーション システム | 文字列 |
| パブリッシュタイプ | コードまたはイメージ | 文字列 |
| レジストリ情報 | レジストリ構成。 | レジストリ情報 |
| ランタイムスタック | ランタイム スタック (実行時スタック) | 文字列 |
| ランタイムバージョン | ランタイム バージョン | 文字列 |
レジストリ情報
| 名前 | 説明 | 価値 |
|---|---|---|
| レジストリパスワード | レジストリ シークレット。 | 糸 制約: 機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。 |
| レジストリURL | レジストリ サーバーの URL。 | 文字列 |
| レジストリユーザー名 | レジストリ ユーザー名。 | 文字列 |
SourceControlProperties (ソースコントロールプロパティ)
| 名前 | 説明 | 価値 |
|---|---|---|
| ブランチ | 自動デプロイをトリガーするブランチ | 文字列 |
| githubActionConfiguration の | 可能なすべての設定と ユーザーが指定しなかった場合は既定値です。 既定値が設定されます 作成時と同じ |
GithubActionConfiguration を |
| リポジトリURL | ContainerApp に統合されるリポジトリ URL。 | 文字列 |