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
variable"apis" {
type=map(map(string))
description="Defines the list of APIs to be deployed"
}
resource"azurerm_application_insights""appinsights" {
for_each=var.apisname=each.value.qs_deploy?"${var.prefix}-qs-${trimsuffix(each.key, "-qs")}-appinsights":"${var.prefix}-${each.key}-appinsights"location=each.value.qs_deploy?azurerm_resource_group.env["${var.prefix}-qs"].location : azurerm_resource_group.env[var.prefix].location resource_group_name = each.value.qs_deploy ? azurerm_resource_group.env["${var.prefix}-qs"].name : azurerm_resource_group.env[var.prefix].name application_type = "web" daily_data_cap_in_gb = each.value.appinsights_daily_cap retention_in_days = each.value.appinsights_retention_days sampling_percentage = "100" workspace_id = azurerm_log_analytics_workspace.aks.id tags = local.common_tags}resource "azurerm_key_vault_secret" "appinsights-api-id" {
depends_on=[azurerm_key_vault_access_policy.shared-sp]
for_each=var.apisname=each.value.qs_deploy?"${var.prefix}-qs-${trimsuffix(each.key, "-qs")}-appinsights-app-id":"${var.prefix}-${each.key}-appinsights-app-id"value=azurerm_application_insights.appinsights[each.key].app_idkey_vault_id=azurerm_key_vault.shared.idtags=local.common_tags
}
Debug Output/Panic Output
N/A
Expected Behaviour
No changes
Actual Behaviour
Since 3.98.0 terraform plan shows changes to app insights secret values. This is not happening with 3.97.1 and before. There are no changes to azurerm_application_insights resources in the plan, only changes to the secrets.
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.8.0
AzureRM Provider Version
3.98.0
Affected Resource(s)/Data Source(s)
azurerm_key_vault_secret, azurerm_application_insights
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
No changes
Actual Behaviour
Since 3.98.0 terraform plan shows changes to app insights secret values. This is not happening with 3.97.1 and before. There are no changes to azurerm_application_insights resources in the plan, only changes to the secrets.
Steps to Reproduce
No response
Important Factoids
No response
References
Could be related to #25376
The text was updated successfully, but these errors were encountered: