Open nickjangid22 opened 8 months ago
Hi @nickjangid22 , thanks for raising this issue. This the expected behavior of creating container app environment. Please make sure you have a subnet size of at least /23 as the error message prompted. Thanks!
Hi @jiaweitao001, I am able to create container environment with existing subnet (size /27) through azure portal and configuration which I am select is environment type "Workload Profiles" and default "Consumption" under Workload profiles. I have attached the screenshots also. But same thing if I am doing with terraform, it's showing error for required /23 size subnet.
Hi @nickjangid22 , currently users are unable to set Consumption
only workload profile with Terraform, this is a known issue, and we already have a fix pending HashiCorp's review. Fix PR: https://github.com/hashicorp/terraform-provider-azurerm/pull/24277
Hi @nickjangid22 , currently users are unable to set
Consumption
only workload profile with Terraform, this is a known issue, and we already have a fix pending HashiCorp's review. Fix PR: #24277
@jiaweitao001 - thanks. Just to confirm, does this also address the issue of the subnet incorrectly requiring a /23 cidr range as opposed to /27 - as described here?
Is there an existing issue for this?
Community Note
I am trying to deploy container apps environment with terraform. I am using existing subnet for build this container apps environment which subnet have /27 size. I want to use default Consumption profile under environment type Workload profile for environment which can be deploy in /27 size subnet for my environment. I don't want use dedicated workload profile means D4..D8..... and E4...E8...... Now I am able to deploy container apps environment with default Consumption profile under environment type Workload profile but through terraform It is showing error.
Azure Portal
Terraform
Terraform Version
1.7.0
AzureRM Provider Version
3.88.0
Affected Resource(s)/Data Source(s)
azurerm_container_app_environment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
No response
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response