diff --git a/modules/azure/service_bus_public/main.tf b/modules/azure/service_bus_public/main.tf index 38f674b2..fd77acd7 100644 --- a/modules/azure/service_bus_public/main.tf +++ b/modules/azure/service_bus_public/main.tf @@ -20,6 +20,7 @@ resource "azurerm_servicebus_namespace" "service_bus" { location = var.location resource_group_name = var.resource_group_name sku = var.sku + minimum_tls_version = var.minimum_tls_version } resource "azurerm_servicebus_namespace_authorization_rule" "authorization_rule" { diff --git a/modules/azure/service_bus_public/variables.tf b/modules/azure/service_bus_public/variables.tf index 8b022c10..70067fb7 100644 --- a/modules/azure/service_bus_public/variables.tf +++ b/modules/azure/service_bus_public/variables.tf @@ -34,3 +34,9 @@ variable "log_analytics_workspace_id" { description = "Specifies the ID of a Log Analytics Workspace where diagnostics data should be sent." default = null } + +variable "minimum_tls_version" { + type = string + description = "Specifies the minimum version of TLS to use (1.0 and 1.1 are deprecated from Feb 2025)" + default = "1.2" +}