We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.8.3
3.100.0
data.azurerm_container_app
data "azurerm_container_app" "this" { name = "my-ca" resource_group_name = "my-rg" }
identity = []
should find the system assigned identity
returns empty list
output "identity" { value = data,azurerm_container_app.identity[0].principal_id }
No response
The text was updated successfully, but these errors were encountered:
Hi @yavuzkaymak could you share how are you creating the container app as well?
Sorry, something went wrong.
Hello, we're also facing this issue with
Terraform version: 1.9.5
1.9.5
AzureRM version: 4.0.1
4.0.1
The container app was deployed using the following command:
az containerapp create \ --name $CONTAINER_APP_NAME \ --image $AZURE_CONTAINER_REGISTRY/$IMAGE_NAME:$IMAGE_VERSION \ --registry-server $AZURE_CONTAINER_REGISTRY \ --registry-username $USERNAME \ --registry-password $PASSWORD \ --resource-group $RESOURCE_GROUP \ --environment $CA_ENV \ --ingress external \ --target-port 8080 \ --system-assigned
We've also looked into the state and the identity block is indeed completely empty.
identity
The Azure Portal correctly shows the identity block within the JSON representation of the Container App.
🐛 fix hashicorp#25987 : container_app_data_source - populate Identity…
e018e80
… field
No branches or pull requests
Is there an existing issue for this?
Community Note
Terraform Version
1.8.3
AzureRM Provider Version
3.100.0
Affected Resource(s)/Data Source(s)
data.azurerm_container_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
should find the system assigned identity
Actual Behaviour
returns empty list
Steps to Reproduce
data "azurerm_container_app" "this" {
name = "my-ca"
resource_group_name = "my-rg"
}
output "identity" { value = data,azurerm_container_app.identity[0].principal_id }
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: