-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for infrastructure_resource_group_name
on azurerm_container_app_environment
without workload_profile
#24934
Comments
infrastructure_resource_group_name
on azurerm_container_app_environment
without workload_profiles
infrastructure_resource_group_name
on azurerm_container_app_environment
without workload_profile
Hi @mschwrdtnr 👋! I've implemented it, and during my testing I noticed that it was only picked up in combination with a If you have an example of it working with a consumption workload profile using |
Hi @aristosvo ! Thanks for your reply. Sorry, I don't understand what example you want me to provide with az. I want to use the following terraform code to rename the infrastructure resource group. It should not be necessary to set workload_profile to use
|
Hi @mschwrdtnr ! I think this is simply not possible and available as functionality in the Azure REST APIs. The easiest to invalidate that is that you have proof that it is possible via other ( |
@aristosvo Ahh got it! Thanks for the clarification. I'll try to test it. |
I was able to provision container apps environment specifying infrastructure resource group name and without workload profile via az cli: az extension add --name containerapp
az containerapp env create -n web-platform -g web-platform --location northeurope --infrastructure-resource-group managed-container-app --infrastructure-subnet-resource-id "/subscriptions/<edited>/resourceGroups/infrastructure/providers/Microsoft.Network/virtualNetworks/dev/subnets/container_app_env" terraform code: resource "azurerm_container_app_environment" "web_platform" {
name = "web-platform"
location = azurerm_resource_group.web_platform.location
resource_group_name = azurerm_resource_group.web_platform.name
infrastructure_subnet_id = azurerm_subnet.subnets["container_app_env"].id
infrastructure_resource_group_name = "managed-container-app"
tags = local.tags
} result: │ Error: Unsupported argument
│
│ on container_app.tf line 46, in resource "azurerm_container_app_environment" "web_platform":
│ 46: infrastructure_resource_group_name = "managed-container-app"
│
│ An argument named "infrastructure_resource_group_name" is not expected here.
╵ |
This issue was fixed by #25285 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Description
Hi together!
I am happy, that since some weeks it's possible to use
infrastructure_resource_group_name
onazurerm_container_app_environment
. Implemented in #24361.The problem is that it's necessary to set
workload_profile {}
and workload profiles only allows values of "["D4" "D8" "D16" "D32" "E4" "E8" "E16" "E32"]".I want to use the consumption workload_profile and also set the change the value for
infrastructure_resource_group_name
. It should not be necessary to specify workload_profile to set the resource group name of the infrastructure, in my opinion.If I want to deploy without
workload_profiles {}
I get the following error:│ "infrastructure_resource_group_name": all of `infrastructure_resource_group_name,workload_profile` must be specified
.New or Affected Resource(s)/Data Source(s)
azurerm_container_app_environment
Potential Terraform Configuration
References
#24361
The text was updated successfully, but these errors were encountered: