注:Azure Spring Apps Build Service Builders(Microsoft.AppPlatform/Spring/buildServices/builders)は現在非推奨となり、2028年5月31日に廃止されます。 詳細については、https://aka.ms/asaretirement を参照してください。
Bicep リソース定義
Spring/buildServices/builders リソースの種類は、次を対象とする操作と共にデプロイできます。
-
リソース グループの - リソース グループのデプロイ コマンド 参照
各 API バージョンで変更されたプロパティの一覧については、変更ログの参照してください。
使用例
Bicep サンプル
Spring Cloud Builder のデプロイの基本的な例。
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource spring 'Microsoft.AppPlatform/Spring@2023-05-01-preview' = {
name: resourceName
location: location
sku: {
name: 'E0'
}
properties: {
zoneRedundant: false
}
}
resource buildService 'Microsoft.AppPlatform/Spring/buildServices@2023-05-01-preview' = {
name: 'default'
parent: spring
properties: {}
}
resource builder 'Microsoft.AppPlatform/Spring/buildServices/builders@2023-05-01-preview' = {
name: resourceName
properties: {
buildpackGroups: [
{
buildpacks: [
{
id: 'tanzu-buildpacks/java-azure'
}
]
name: 'mix'
}
]
stack: {
id: 'io.buildpacks.stacks.bionic'
version: 'base'
}
}
}
Microsoft.AppPlatform/Spring/buildServices/builders リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.AppPlatform/Spring/buildServices/builders@2023-12-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
buildpackGroups: [
{
buildpacks: [
{
id: 'string'
}
]
name: 'string'
}
]
stack: {
id: 'string'
version: 'string'
}
}
}
プロパティ値
BuilderProperties(ビルダープロパティ)
ビルドパックプロパティ
| 名前 |
形容 |
価値 |
| 身分証明書 |
ビルドパックの ID |
文字列 |
ビルドパック グループ プロパティ
| 名前 |
形容 |
価値 |
| ビルドパック |
buildpack グループ内の Buildpack |
ビルドパックプロパティ[] |
| 名前 |
Buildpack グループ名 |
文字列 |
スタックプロパティ
| 名前 |
形容 |
価値 |
| 身分証明書 |
ClusterStack の ID。 |
文字列 |
| バージョン |
ClusterStack のバージョン |
文字列 |
ARM テンプレート リソース定義
Spring/buildServices/builders リソースの種類は、次を対象とする操作と共にデプロイできます。
使用例
Microsoft.AppPlatform/Spring/buildServices/builders リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.AppPlatform/Spring/buildServices/builders",
"apiVersion": "2023-12-01",
"name": "string",
"properties": {
"buildpackGroups": [
{
"buildpacks": [
{
"id": "string"
}
],
"name": "string"
}
],
"stack": {
"id": "string",
"version": "string"
}
}
}
プロパティ値
| 名前 |
形容 |
価値 |
| apiVersion (英語) |
API のバージョン |
'2023-12-01' |
| 名前 |
リソース名 |
string (必須) |
| プロパティ |
Builder リソースのプロパティ。 |
BuilderProperties(ビルダープロパティ) |
| 型 |
リソースの種類 |
'Microsoft.AppPlatform/Spring/buildServices/builders' |
BuilderProperties(ビルダープロパティ)
ビルドパックプロパティ
| 名前 |
形容 |
価値 |
| 身分証明書 |
ビルドパックの ID |
文字列 |
ビルドパック グループ プロパティ
| 名前 |
形容 |
価値 |
| ビルドパック |
buildpack グループ内の Buildpack |
ビルドパックプロパティ[] |
| 名前 |
Buildpack グループ名 |
文字列 |
スタックプロパティ
| 名前 |
形容 |
価値 |
| 身分証明書 |
ClusterStack の ID。 |
文字列 |
| バージョン |
ClusterStack のバージョン |
文字列 |
Spring/buildServices/builders リソースの種類は、次を対象とする操作と共にデプロイできます。
-
リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。
使用例
Spring Cloud Builder のデプロイの基本的な例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "Spring" {
type = "Microsoft.AppPlatform/Spring@2023-05-01-preview"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
zoneRedundant = false
}
sku = {
name = "E0"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
data "azapi_resource_id" "buildService" {
type = "Microsoft.AppPlatform/Spring/buildServices@2023-05-01-preview"
parent_id = azapi_resource.Spring.id
name = "default"
}
resource "azapi_resource_action" "buildService" {
type = "Microsoft.AppPlatform/Spring/buildServices@2023-05-01-preview"
resource_id = data.azapi_resource_id.buildService.id
method = "PUT"
body = {
properties = {
}
}
response_export_values = ["*"]
}
resource "azapi_resource" "builder" {
type = "Microsoft.AppPlatform/Spring/buildServices/builders@2023-05-01-preview"
parent_id = azapi_resource_action.buildService.id
name = var.resource_name
body = {
properties = {
buildpackGroups = [
{
buildpacks = [
{
id = "tanzu-buildpacks/java-azure"
},
]
name = "mix"
},
]
stack = {
id = "io.buildpacks.stacks.bionic"
version = "base"
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Microsoft.AppPlatform/Spring/buildServices/builders リソースを作成するには、次の Terraform をテンプレートに追加します。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AppPlatform/Spring/buildServices/builders@2023-12-01"
name = "string"
parent_id = "string"
body = {
properties = {
buildpackGroups = [
{
buildpacks = [
{
id = "string"
}
]
name = "string"
}
]
stack = {
id = "string"
version = "string"
}
}
}
}
プロパティ値
BuilderProperties(ビルダープロパティ)
ビルドパックプロパティ
| 名前 |
形容 |
価値 |
| 身分証明書 |
ビルドパックの ID |
文字列 |
ビルドパック グループ プロパティ
| 名前 |
形容 |
価値 |
| ビルドパック |
buildpack グループ内の Buildpack |
ビルドパックプロパティ[] |
| 名前 |
Buildpack グループ名 |
文字列 |
スタックプロパティ
| 名前 |
形容 |
価値 |
| 身分証明書 |
ClusterStack の ID。 |
文字列 |
| バージョン |
ClusterStack のバージョン |
文字列 |