Releases: Azure/terraform-azurerm-avm-res-web-site
Releases · Azure/terraform-azurerm-avm-res-web-site
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.2
v0.15.1
v0.15.0
v0.14.2
Breaking Change(s)
None
Feature(s)
None
Update(s)
bugfixwhereadditional_login_parameterswas set to accept a list of string where provide expects a map of string (addresses Issue #157)
variable "auth_settings" {
type = map(object({
additional_login_parameters = optional(list(string)) ------> additional_login_parameters = optional(map(string))
.
.
.
bugfixto address issue where ifapp_service_nameis not explicitly set, module references name that will cause error (addresses Issue #156)
Before:
app_service_name = coalesce(each.value.app_service_name, "${var.name}-asp")
After:
app_service_name = coalesce(each.value.app_service_name, var.name, "${var.name}-asp")
NOTE: Will likely remove "${var.name}-asp" in the future.
bugfixto properly add tags for slot private endpoints
Before:
tags = var.all_child_resources_inherit_tags ? merge(var.tags, each.value.pe_value.tags) : each.value.tags
After:
tags = var.all_child_resources_inherit_tags ? merge(var.tags, each.value.pe_value.tags) : each.value.pe_value.tags
Contributors
- @niekvanraaij (PR #155)
v0.14.1
v0.14.0
BE AWARE - this version my introduce breaking changes to your existing configuration(s)
Breaking Change(s)
- introducing
featurethat allows for different application insights for slots via Issue #145, involving changes to logic regarding the application insights for deployment slots
CODE:
Function App Slots
application_insights_connection_string = var.enable_application_insights ? (each.value.site_config.slot_application_insights_object_key != null ? coalesce(each.value.site_config.application_insights_connection_string, azurerm_application_insights.slot[each.value.site_config.slot_application_insights_object_key].connection_string, azurerm_application_insights.this[0].connection_string) : coalesce(each.value.site_config.application_insights_connection_string, azurerm_application_insights.this[0].connection_string)) : null application_insights_key = var.enable_application_insights ? (each.value.site_config.slot_application_insights_object_key != null ? coalesce(each.value.site_config.application_insights_key, azurerm_application_insights.slot[each.value.site_config.slot_application_insights_object_key].instrumentation_key, azurerm_application_insights.this[0].instrumentation_key) : coalesce(each.value.site_config.application_insights_key, azurerm_application_insights.this[0].instrumentation_key)) : null
Web App Slots
app_settings = var.enable_application_insights ? merge({ "APPLICATIONINSIGHTS_CONNECTION_STRING" = (each.value.site_config.slot_application_insights_object_key != null ? coalesce(each.value.site_config.application_insights_connection_string, azurerm_application_insights.slot[each.value.site_config.slot_application_insights_object_key].connection_string, azurerm_application_insights.this[0].connection_string) : coalesce(each.value.site_config.application_insights_connection_string, azurerm_application_insights.this[0].connection_string)) }, { "APPINSIGHTS_INSTRUMENTATIONKEY" = (each.value.site_config.slot_application_insights_object_key != null ? coalesce(each.value.site_config.application_insights_key, azurerm_application_insights.slot[each.value.site_config.slot_application_insights_object_key].instrumentation_key, azurerm_application_insights.this[0].instrumentation_key) : coalesce(each.value.site_config.application_insights_key, azurerm_application_insights.this[0].instrumentation_key)) }, each.value.app_settings) : each.value.app_settings
Feature(s)
- new
slot_application_insightsobject variable - new
slot_application_insights_object_keyvariable
Update(s)
- addressed bug where
dotnet_core_versionwas missing fromapplication_stack(Issue #146) - added the following to documentation of
deployment_slotsvariable:
If you plan to use the attribute reference of an external Application Insights instance for
application_insights_connection_stringandapplication_insights_key, you will likely need to remove the sensitivity level. For example, using thenonsensitivefunction.
- updated
example/deploy_slots_with_interfacesto show different application insights instance deployment model.