Microsoft.StandbyPool standbyContainerGroupPools 2025-10-01

Bicep resource definition

The standbyContainerGroupPools resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Usage Examples

Bicep Samples

A basic example of deploying Microsoft Standby pools for Container Groups.

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: []
  }
}

Resource format

To create a Microsoft.StandbyPool/standbyContainerGroupPools resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.StandbyPool/standbyContainerGroupPools@2025-10-01' = {
  location: 'string'
  name: 'string'
  properties: {
    containerGroupProperties: {
      containerGroupProfile: {
        id: 'string'
        revision: int
      }
      subnetIds: [
        {
          id: 'string'
        }
      ]
    }
    elasticityProfile: {
      dynamicSizing: {
        enabled: bool
      }
      maxReadyCapacity: int
      refillPolicy: 'string'
    }
    zones: [
      'string'
    ]
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.StandbyPool/standbyContainerGroupPools

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9-]{3,24}$ (required)
properties The resource-specific properties for this resource. StandbyContainerGroupPoolResourceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ContainerGroupProfile

Name Description Value
id Specifies container group profile id of standby container groups. string (required)
revision Specifies revision of container group profile. int

ContainerGroupProperties

Name Description Value
containerGroupProfile Specifies container group profile of standby container groups. ContainerGroupProfile (required)
subnetIds Specifies subnet Ids for container group. Subnet[]

DynamicSizing

Name Description Value
enabled Indicates whether dynamic sizing is enabled for the standby pool. bool

StandbyContainerGroupPoolElasticityProfile

Name Description Value
dynamicSizing Specifies the dynamic sizing configuration. DynamicSizing
maxReadyCapacity Specifies maximum number of standby container groups in the standby pool. int

Constraints:
Min value = 0 (required)
refillPolicy Specifies refill policy of the pool. 'always'

StandbyContainerGroupPoolResourceProperties

Name Description Value
containerGroupProperties Specifies container group properties of standby container group pools. ContainerGroupProperties (required)
elasticityProfile Specifies elasticity profile of standby container group pools. StandbyContainerGroupPoolElasticityProfile (required)
zones Specifies zones of standby container group pools. string[]

Subnet

Name Description Value
id Specifies ARM resource id of the subnet. string (required)

TrackedResourceTags

Name Description Value

ARM template resource definition

The standbyContainerGroupPools resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.StandbyPool/standbyContainerGroupPools resource, add the following JSON to your template.

{
  "type": "Microsoft.StandbyPool/standbyContainerGroupPools",
  "apiVersion": "2025-10-01",
  "name": "string",
  "location": "string",
  "properties": {
    "containerGroupProperties": {
      "containerGroupProfile": {
        "id": "string",
        "revision": "int"
      },
      "subnetIds": [
        {
          "id": "string"
        }
      ]
    },
    "elasticityProfile": {
      "dynamicSizing": {
        "enabled": "bool"
      },
      "maxReadyCapacity": "int",
      "refillPolicy": "string"
    },
    "zones": [ "string" ]
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.StandbyPool/standbyContainerGroupPools

Name Description Value
apiVersion The api version '2025-10-01'
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9-]{3,24}$ (required)
properties The resource-specific properties for this resource. StandbyContainerGroupPoolResourceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.StandbyPool/standbyContainerGroupPools'

ContainerGroupProfile

Name Description Value
id Specifies container group profile id of standby container groups. string (required)
revision Specifies revision of container group profile. int

ContainerGroupProperties

Name Description Value
containerGroupProfile Specifies container group profile of standby container groups. ContainerGroupProfile (required)
subnetIds Specifies subnet Ids for container group. Subnet[]

DynamicSizing

Name Description Value
enabled Indicates whether dynamic sizing is enabled for the standby pool. bool

StandbyContainerGroupPoolElasticityProfile

Name Description Value
dynamicSizing Specifies the dynamic sizing configuration. DynamicSizing
maxReadyCapacity Specifies maximum number of standby container groups in the standby pool. int

Constraints:
Min value = 0 (required)
refillPolicy Specifies refill policy of the pool. 'always'

StandbyContainerGroupPoolResourceProperties

Name Description Value
containerGroupProperties Specifies container group properties of standby container group pools. ContainerGroupProperties (required)
elasticityProfile Specifies elasticity profile of standby container group pools. StandbyContainerGroupPoolElasticityProfile (required)
zones Specifies zones of standby container group pools. string[]

Subnet

Name Description Value
id Specifies ARM resource id of the subnet. string (required)

TrackedResourceTags

Name Description Value

Terraform (AzAPI provider) resource definition

The standbyContainerGroupPools resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Usage Examples

Terraform Samples

A basic example of deploying Microsoft Standby pools for Container Groups.

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
}

Resource format

To create a Microsoft.StandbyPool/standbyContainerGroupPools resource, add the following Terraform to your template.

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

Property Values

Microsoft.StandbyPool/standbyContainerGroupPools

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9-]{3,24}$ (required)
properties The resource-specific properties for this resource. StandbyContainerGroupPoolResourceProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.StandbyPool/standbyContainerGroupPools@2025-10-01"

ContainerGroupProfile

Name Description Value
id Specifies container group profile id of standby container groups. string (required)
revision Specifies revision of container group profile. int

ContainerGroupProperties

Name Description Value
containerGroupProfile Specifies container group profile of standby container groups. ContainerGroupProfile (required)
subnetIds Specifies subnet Ids for container group. Subnet[]

DynamicSizing

Name Description Value
enabled Indicates whether dynamic sizing is enabled for the standby pool. bool

StandbyContainerGroupPoolElasticityProfile

Name Description Value
dynamicSizing Specifies the dynamic sizing configuration. DynamicSizing
maxReadyCapacity Specifies maximum number of standby container groups in the standby pool. int

Constraints:
Min value = 0 (required)
refillPolicy Specifies refill policy of the pool. 'always'

StandbyContainerGroupPoolResourceProperties

Name Description Value
containerGroupProperties Specifies container group properties of standby container group pools. ContainerGroupProperties (required)
elasticityProfile Specifies elasticity profile of standby container group pools. StandbyContainerGroupPoolElasticityProfile (required)
zones Specifies zones of standby container group pools. string[]

Subnet

Name Description Value
id Specifies ARM resource id of the subnet. string (required)

TrackedResourceTags

Name Description Value