Closed mattduguid closed 3 months ago
@mattduguid As the Azure document mentioned about the minimum resource allocation:
Allocate a minimum of 1 CPU and 1 GB of memory to a container group. Individual container instances within a group can be provisioned with less than 1 CPU and 1 GB of memory
I've tried the following config locally, which can provision successfully:
resource "azurerm_container_group" "test" {
name = "acctestcontainergroup-333"
location = azurerm_resource_group.test.location
resource_group_name = azurerm_resource_group.test.name
ip_address_type = "None"
os_type = "Linux"
container {
name = "hw"
image = "mcr.microsoft.com/azuredocs/aci-helloworld:latest"
cpu = "0.5"
memory = "1.5"
}
}
You probably need to file an Azure support ticket with your request correlation id to figure out why you got that 500 status code.
@magodo thanks for checking that, we did have the same issue when trying via the portal UI, it might be something specific to our region/account/etc can log a ticket :)
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. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.9.2
AzureRM Provider Version
terraform-provider-azurerm_v3.114.0_x5
Affected Resource(s)/Data Source(s)
azurerm_container_group
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Container to create with the setting from the example
Actual Behaviour
http/500 error from the API to terraform, until changed from value "0.5" to "1.0" and then it works
To determine the cause I tried a manual create in the UI with the original settings and that's when I noticed the value wasn't being accepted.
Steps to Reproduce
terraform apply
Important Factoids
N/A
References
N/A