Microsoft.StandbyPool 대기ContainerGroupPools 2023-12-01-미리 보기

Bicep 리소스 정의

standbyContainerGroupPools 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.

사용 예제

Bicep 샘플

컨테이너 그룹에 대한 Microsoft 대기 풀을 배포하는 기본 예제입니다.

param resourceName string = 'acctest0001'
param location string = 'eastus'

resource containerGroupProfile 'Microsoft.ContainerInstance/containerGroupProfiles@2024-05-01-preview' = {
  name: '${resourceName}-contianerGroup'
  location: location
  properties: {
    containers: [
      {
        name: 'mycontainergroupprofile'
        properties: {
          command: []
          environmentVariables: []
          image: 'mcr.microsoft.com/azuredocs/aci-helloworld:latest'
          ports: [
            {
              port: 8000
            }
          ]
          resources: {
            requests: {
              cpu: 1
              memoryInGB: any('1.5')
            }
          }
        }
      }
    ]
    imageRegistryCredentials: []
    ipAddress: {
      ports: [
        {
          port: 8000
          protocol: 'TCP'
        }
      ]
      type: 'Public'
    }
    osType: 'Linux'
    sku: 'Standard'
  }
}

resource standbyContainerGroupPool 'Microsoft.StandbyPool/standbyContainerGroupPools@2025-03-01' = {
  name: '${resourceName}-CGPool'
  properties: {
    containerGroupProperties: {
      containerGroupProfile: {
        id: containerGroupProfile.id
        revision: 1
      }
      subnetIds: [
        {
          id: subnet.id
        }
      ]
    }
    elasticityProfile: {
      maxReadyCapacity: 5
      refillPolicy: 'always'
    }
    zones: [
      '1'
      '2'
      '3'
    ]
  }
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-07-01' = {
  name: '${resourceName}-vnet'
  location: location
  properties: {
    addressSpace: {
      addressPrefixes: [
        '10.0.0.0/16'
      ]
    }
    dhcpOptions: {
      dnsServers: []
    }
    subnets: []
  }
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-07-01' = {
  name: '${resourceName}-subnet'
  parent: virtualNetwork
  properties: {
    addressPrefix: '10.0.2.0/24'
    delegations: []
    privateEndpointNetworkPolicies: 'Enabled'
    privateLinkServiceNetworkPolicies: 'Enabled'
    serviceEndpointPolicies: []
    serviceEndpoints: []
  }
}

리소스 형식

Microsoft.StandbyPool/standbyContainerGroupPools 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.

resource symbolicname 'Microsoft.StandbyPool/standbyContainerGroupPools@2023-12-01-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    containerGroupProperties: {
      containerGroupProfile: {
        id: 'string'
        revision: int
      }
      subnetIds: [
        {
          id: 'string'
        }
      ]
    }
    elasticityProfile: {
      maxReadyCapacity: int
      refillPolicy: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

속성 값

Microsoft.StandbyPool/standbyContainerGroupPools

이름 묘사 값
위치 리소스가 있는 지리적 위치 string(필수)
이름 리소스 이름 문자열

제약 조건:
패턴 = ^[a-zA-Z0-9-]{3,24}$(필수)
속성 이 리소스에 대한 리소스별 속성입니다. StandbyContainerGroupPoolResourceProperties
태그 리소스 태그 태그 이름 및 값의 사전입니다. 템플릿 태그를 참조하세요.

컨테이너 그룹 프로필

이름 묘사 값
아이디 대기 컨테이너 그룹의 컨테이너 그룹 프로필 ID를 지정합니다. string(필수)
개정판 컨테이너 그룹 프로필의 수정 버전을 지정합니다. 정수 (int)

컨테이너 그룹 속성

이름 묘사 값
컨테이너GroupProfile 대기 컨테이너 그룹의 컨테이너 그룹 프로필을 지정합니다. ContainerGroupProfile(필수)
서브넷 ID 컨테이너 그룹의 서브넷 ID를 지정합니다. 서브넷[]

StandbyContainerGroupPoolElasticityProfile

이름 묘사 값
최대 준비 용량 대기 풀의 최대 대기 컨테이너 그룹 수를 지정합니다. 정수

제약 조건:
최소값 = 0
최대값 = 2000(필수)
재충전 정책 풀의 리필 정책을 지정합니다. '항상'

StandbyContainerGroupPoolResourceProperties

이름 묘사 값
containerGroupProperties 대기 컨테이너 그룹 풀의 컨테이너 그룹 속성을 지정합니다. ContainerGroupProperties(필수)
elasticity프로필 대기 컨테이너 그룹 풀의 탄력성 프로필을 지정합니다. StandbyContainerGroupPoolElasticityProfile(필수)

서브넷

이름 묘사 값
아이디 서브넷의 ARM 리소스 ID를 지정합니다. string(필수)

TrackedResource태그

이름 묘사 값

ARM 템플릿 리소스 정의

standbyContainerGroupPools 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

사용 예제

리소스 형식

Microsoft.StandbyPool/standbyContainerGroupPools 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.

{
  "type": "Microsoft.StandbyPool/standbyContainerGroupPools",
  "apiVersion": "2023-12-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "containerGroupProperties": {
      "containerGroupProfile": {
        "id": "string",
        "revision": "int"
      },
      "subnetIds": [
        {
          "id": "string"
        }
      ]
    },
    "elasticityProfile": {
      "maxReadyCapacity": "int",
      "refillPolicy": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

속성 값

Microsoft.StandbyPool/standbyContainerGroupPools

이름 묘사 값
API버전 api 버전 '2023-12-01-미리보기'
위치 리소스가 있는 지리적 위치 string(필수)
이름 리소스 이름 문자열

제약 조건:
패턴 = ^[a-zA-Z0-9-]{3,24}$(필수)
속성 이 리소스에 대한 리소스별 속성입니다. StandbyContainerGroupPoolResourceProperties
태그 리소스 태그 태그 이름 및 값의 사전입니다. 템플릿 태그를 참조하세요.
형 리소스 종류 'Microsoft.StandbyPool/standbyContainerGroupPools'

컨테이너 그룹 프로필

이름 묘사 값
아이디 대기 컨테이너 그룹의 컨테이너 그룹 프로필 ID를 지정합니다. string(필수)
개정판 컨테이너 그룹 프로필의 수정 버전을 지정합니다. 정수 (int)

컨테이너 그룹 속성

이름 묘사 값
컨테이너GroupProfile 대기 컨테이너 그룹의 컨테이너 그룹 프로필을 지정합니다. ContainerGroupProfile(필수)
서브넷 ID 컨테이너 그룹의 서브넷 ID를 지정합니다. 서브넷[]

StandbyContainerGroupPoolElasticityProfile

이름 묘사 값
최대 준비 용량 대기 풀의 최대 대기 컨테이너 그룹 수를 지정합니다. 정수

제약 조건:
최소값 = 0
최대값 = 2000(필수)
재충전 정책 풀의 리필 정책을 지정합니다. '항상'

StandbyContainerGroupPoolResourceProperties

이름 묘사 값
containerGroupProperties 대기 컨테이너 그룹 풀의 컨테이너 그룹 속성을 지정합니다. ContainerGroupProperties(필수)
elasticity프로필 대기 컨테이너 그룹 풀의 탄력성 프로필을 지정합니다. StandbyContainerGroupPoolElasticityProfile(필수)

서브넷

이름 묘사 값
아이디 서브넷의 ARM 리소스 ID를 지정합니다. string(필수)

TrackedResource태그

이름 묘사 값

Terraform(AzAPI 공급자) 리소스 정의

standbyContainerGroupPools 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

  • 자원 그룹 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.

사용 예제

Terraform 샘플

컨테이너 그룹에 대한 Microsoft 대기 풀을 배포하는 기본 예제입니다.

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 = "eastus"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = "${var.resource_name}-rg"
  location = var.location
}

resource "azapi_resource" "virtualNetwork" {
  type      = "Microsoft.Network/virtualNetworks@2022-07-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-vnet"
  location  = var.location
  body = {
    properties = {
      addressSpace = {
        addressPrefixes = [
          "10.0.0.0/16",
        ]
      }
      dhcpOptions = {
        dnsServers = [
        ]
      }
      subnets = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
  lifecycle {
    ignore_changes = [body.properties.subnets]
  }
}

resource "azapi_resource" "subnet" {
  type      = "Microsoft.Network/virtualNetworks/subnets@2022-07-01"
  parent_id = azapi_resource.virtualNetwork.id
  name      = "${var.resource_name}-subnet"
  body = {
    properties = {
      addressPrefix = "10.0.2.0/24"
      delegations = [
      ]
      privateEndpointNetworkPolicies    = "Enabled"
      privateLinkServiceNetworkPolicies = "Enabled"
      serviceEndpointPolicies = [
      ]
      serviceEndpoints = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "containerGroupProfile" {
  type      = "Microsoft.ContainerInstance/containerGroupProfiles@2024-05-01-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-contianerGroup"
  location  = var.location

  body = {
    properties = {
      "containers" : [
        {
          "name" : "mycontainergroupprofile",
          "properties" : {
            "command" : [],
            "environmentVariables" : [],
            "image" : "mcr.microsoft.com/azuredocs/aci-helloworld:latest",
            "ports" : [
              {
                "port" : 8000
              }
            ],
            "resources" : {
              "requests" : {
                "cpu" : 1,
                "memoryInGB" : 1.5
              }
            }
          }
        }
      ],
      "imageRegistryCredentials" : [],
      "ipAddress" : {
        "ports" : [
          {
            "protocol" : "TCP",
            "port" : 8000
          }
        ],
        "type" : "Public"
      },
      "osType" : "Linux",
      "sku" : "Standard"
    }
  }

  schema_validation_enabled = false
}



resource "azapi_resource" "standbyContainerGroupPool" {
  type      = "Microsoft.StandbyPool/standbyContainerGroupPools@2025-03-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-CGPool"
  body = {
    properties = {
      containerGroupProperties = {
        containerGroupProfile = {
          id       = azapi_resource.containerGroupProfile.id
          revision = 1
        }
        subnetIds = [
          {
            id = azapi_resource.subnet.id
          },
        ]
      }
      elasticityProfile = {
        maxReadyCapacity = 5
        refillPolicy     = "always"
      }
      zones = [
        "1",
        "2",
        "3",
      ]
    },
    location = "${var.location}"
  }
  schema_validation_enabled = false
  ignore_casing             = false
  ignore_missing_property   = false
}

리소스 형식

Microsoft.StandbyPool/standbyContainerGroupPools 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.StandbyPool/standbyContainerGroupPools@2023-12-01-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      containerGroupProperties = {
        containerGroupProfile = {
          id = "string"
          revision = int
        }
        subnetIds = [
          {
            id = "string"
          }
        ]
      }
      elasticityProfile = {
        maxReadyCapacity = int
        refillPolicy = "string"
      }
    }
  }
}

속성 값

Microsoft.StandbyPool/standbyContainerGroupPools

이름 묘사 값
위치 리소스가 있는 지리적 위치 string(필수)
이름 리소스 이름 문자열

제약 조건:
패턴 = ^[a-zA-Z0-9-]{3,24}$(필수)
속성 이 리소스에 대한 리소스별 속성입니다. StandbyContainerGroupPoolResourceProperties
태그 리소스 태그 태그 이름 및 값의 사전입니다.
형 리소스 종류 "Microsoft.StandbyPool/standbyContainerGroupPools@2023-12-01-preview"

컨테이너 그룹 프로필

이름 묘사 값
아이디 대기 컨테이너 그룹의 컨테이너 그룹 프로필 ID를 지정합니다. string(필수)
개정판 컨테이너 그룹 프로필의 수정 버전을 지정합니다. 정수 (int)

컨테이너 그룹 속성

이름 묘사 값
컨테이너GroupProfile 대기 컨테이너 그룹의 컨테이너 그룹 프로필을 지정합니다. ContainerGroupProfile(필수)
서브넷 ID 컨테이너 그룹의 서브넷 ID를 지정합니다. 서브넷[]

StandbyContainerGroupPoolElasticityProfile

이름 묘사 값
최대 준비 용량 대기 풀의 최대 대기 컨테이너 그룹 수를 지정합니다. 정수

제약 조건:
최소값 = 0
최대값 = 2000(필수)
재충전 정책 풀의 리필 정책을 지정합니다. '항상'

StandbyContainerGroupPoolResourceProperties

이름 묘사 값
containerGroupProperties 대기 컨테이너 그룹 풀의 컨테이너 그룹 속성을 지정합니다. ContainerGroupProperties(필수)
elasticity프로필 대기 컨테이너 그룹 풀의 탄력성 프로필을 지정합니다. StandbyContainerGroupPoolElasticityProfile(필수)

서브넷

이름 묘사 값
아이디 서브넷의 ARM 리소스 ID를 지정합니다. string(필수)

TrackedResource태그

이름 묘사 값