Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
╷
│ Error: updating Container Group (Subscription: "***"
│ Resource Group Name: "example-rg"
│ Container Group Name: "example-ci"): performing ContainerGroupsCreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidLogAnalytics: The log analytics setting is invalid. WorkspaceId and WorkspaceKey should not be null or empty.
│
│ with azurerm_container_group.example,
│ on main.tf line 16, in resource "azurerm_container_group" "example":
│ 16: resource "azurerm_container_group" "example" {
│
╵
Expected Behaviour
When uncommenting the identity block, Terraform should enable the system-assigned identity for the container group.
Actual Behaviour
When uncommenting the identity block, Terraform throws an error when trying to update the container group.
Is there an existing issue for this?
Community Note
Terraform Version
1.9.8
AzureRM Provider Version
4.9.0
Affected Resource(s)/Data Source(s)
azurerm_container_group
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When uncommenting the
identity
block, Terraform should enable the system-assigned identity for the container group.Actual Behaviour
When uncommenting the
identity
block, Terraform throws an error when trying to update the container group.Steps to Reproduce
terraform init
terraform apply
identity
blockterraform apply
Important Factoids
No response
References
No response