hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.61k stars 4.65k forks source link

azurerm_mssql_elasticpool - Unable to create hyperscale epool #27908

Open yctan93 opened 2 weeks ago

yctan93 commented 2 weeks ago

Is there an existing issue for this?

Community Note

Terraform Version

1.9.8

AzureRM Provider Version

4.8.0

Affected Resource(s)/Data Source(s)

azurerm_mssql_elasticpool

Terraform Configuration Files

resource "azurerm_mssql_elasticpool" "mssql_epool" { 
  name                = var.epool_name
  resource_group_name = var.epool_rg_name
  location            = var.location
  server_name         = var.server_name
  license_type        = var.license_type 
  max_size_gb         = var.max_size_gb

  sku {
    name     = "HS_PRMS"
    tier     = "Hyperscale"
    family   = "PRMS"
    capacity = 4
  }

  per_database_settings {
    min_capacity = 0
    max_capacity = 4
  }
}

Debug Output/Panic Output

╷
│ Error: 1 error occurred:
│       * service tier 'Hyperscale' PRMS must have a 'capacity'(4) of  vCores
│ 
│ 
│ 
│   with module.mssql-epool.azurerm_mssql_elasticpool.mssql_epool,
│   on ../modules/mssql_epool/module.tf line 1, in resource "azurerm_mssql_elasticpool" "mssql_epool":
│    1: resource "azurerm_mssql_elasticpool" "mssql_epool" { 
│ 
╵

Expected Behaviour

Hyperscale PRMS elasticpool created with 4vCores

Actual Behaviour

Terraform plan fails with

╷ │ Error: 1 error occurred: │ * service tier 'Hyperscale' PRMS must have a 'capacity'(4) of vCores

Steps to Reproduce

Run terraform plan with the following sku configuration

sku { name = "HS_PRMS" tier = "Hyperscale" family = "PRMS" capacity = 4 }

Important Factoids

N/A

References

No response

mkohn commented 3 days ago

Can confirm I'm having the same problem. This is only for PRMS and MOPRMS.