You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 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.
There is a mismatch configuration between resource data and data source.
By default, Terraform Azure provider version 4.19 is adding in the ingress block, the client_certificate_mode property.
However, after an apply, if you try to read the container app as data source, fails, because cannot map a missing property:
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: setting "ingress": Invalid address to set: []string{"ingress", "0", "client_certificate_mode"}
│
│ with data.azurerm_container_app.container_app_backend,
│ on main.tf line 1, in data "azurerm_container_app" "container_app_backend":
│ 1: data "azurerm_container_app" "container_app_backend" {
│
│ setting "ingress": Invalid address to set: []string{"ingress", "0", "client_certificate_mode"}
```
This is my actual configuration:
```
data "azurerm_container_app" "container_app_backend" {
name = "${var.alias}-app-backend-${local.environment}"
resource_group_name = local.resource_group_name
provider = azurerm
}
```
### Terraform Version
1.10.15
### AzureRM Provider Version
4.19
### Affected Resource(s)/Data Source(s)
data azurerm_container_app
### Terraform Configuration Files
```hcl
data "azurerm_container_app" "container_app_backend" {
name = "${var.alias}-app-backend-${local.environment}"
resource_group_name = local.resource_group_name
provider = azurerm
}
```
### Debug Output/Panic Output
```shell
data.azurerm_container_app.container_app_backend: Reading...
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: setting "ingress": Invalid address to set: []string{"ingress", "0", "client_certificate_mode"}
│
│ with data.azurerm_container_app.container_app_backend,
│ on main.tf line 1, in data "azurerm_container_app" "container_app_backend":
│ 1: data "azurerm_container_app" "container_app_backend" {
│
│ setting "ingress": Invalid address to set: []string{"ingress", "0", "client_certificate_mode"}
╵
```
### Expected Behaviour
_No response_
### Actual Behaviour
_No response_
### Steps to Reproduce
_No response_
### Important Factoids
_No response_
### References
_No response_
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
There is a mismatch configuration between resource data and data source.
By default, Terraform Azure provider version 4.19 is adding in the ingress block, the client_certificate_mode property.
However, after an apply, if you try to read the container app as data source, fails, because cannot map a missing property:
The text was updated successfully, but these errors were encountered: