참고: 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'
}
}
}
속성 값
| 이름 |
묘사 |
값 |
| 이름 |
리소스 이름 |
string(필수) |
| 부모 |
Bicep에서 자식 리소스에 대한 부모 리소스를 지정할 수 있습니다. 자식 리소스가 부모 리소스 외부에서 선언된 경우에만 이 속성을 추가해야 합니다.
자세한 내용은 부모 리소스외부의 자식 리소스 참조하세요. |
형식 리소스의 기호 이름: Spring/buildServices |
| 속성 |
Builder 리소스의 속성입니다. |
빌더프로퍼티 |
빌더프로퍼티
| 이름 |
묘사 |
값 |
| buildpack그룹 |
작성기 빌드 팩 그룹입니다. |
빌드팩그룹속성[] |
| 스택 |
작성기 클러스터 스택 속성입니다. |
stackProperties |
빌드팩프로퍼티
| 이름 |
묘사 |
값 |
| 아이디 |
buildpack의 ID |
문자열 |
빌드팩그룹속성
| 이름 |
묘사 |
값 |
| 빌드팩 |
빌드 팩 그룹의 Buildpack |
빌드팩 프로퍼티[] |
| 이름 |
Buildpack 그룹 이름 |
문자열 |
StackProperties
| 이름 |
묘사 |
값 |
| 아이디 |
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"
}
}
}
속성 값
| 이름 |
묘사 |
값 |
| API버전 |
api 버전 |
'2023-12-01' |
| 이름 |
리소스 이름 |
string(필수) |
| 속성 |
Builder 리소스의 속성입니다. |
빌더프로퍼티 |
| 형 |
리소스 종류 |
'Microsoft.AppPlatform/Spring/buildServices/builders' |
빌더프로퍼티
| 이름 |
묘사 |
값 |
| buildpack그룹 |
작성기 빌드 팩 그룹입니다. |
빌드팩그룹속성[] |
| 스택 |
작성기 클러스터 스택 속성입니다. |
stackProperties |
빌드팩프로퍼티
| 이름 |
묘사 |
값 |
| 아이디 |
buildpack의 ID |
문자열 |
빌드팩그룹속성
| 이름 |
묘사 |
값 |
| 빌드팩 |
빌드 팩 그룹의 Buildpack |
빌드팩 프로퍼티[] |
| 이름 |
Buildpack 그룹 이름 |
문자열 |
StackProperties
| 이름 |
묘사 |
값 |
| 아이디 |
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"
}
}
}
}
속성 값
| 이름 |
묘사 |
값 |
| 이름 |
리소스 이름 |
string(필수) |
| 부모 ID |
이 리소스의 부모인 리소스의 ID입니다. |
형식 리소스의 ID: Spring/buildServices |
| 속성 |
Builder 리소스의 속성입니다. |
빌더프로퍼티 |
| 형 |
리소스 종류 |
"Microsoft.AppPlatform/Spring/buildServices/builders@2023-12-01" |
빌더프로퍼티
| 이름 |
묘사 |
값 |
| buildpack그룹 |
작성기 빌드 팩 그룹입니다. |
빌드팩그룹속성[] |
| 스택 |
작성기 클러스터 스택 속성입니다. |
stackProperties |
빌드팩프로퍼티
| 이름 |
묘사 |
값 |
| 아이디 |
buildpack의 ID |
문자열 |
빌드팩그룹속성
| 이름 |
묘사 |
값 |
| 빌드팩 |
빌드 팩 그룹의 Buildpack |
빌드팩 프로퍼티[] |
| 이름 |
Buildpack 그룹 이름 |
문자열 |
StackProperties
| 이름 |
묘사 |
값 |
| 아이디 |
ClusterStack의 ID입니다. |
문자열 |
| 버전 |
ClusterStack 버전 |
문자열 |