From f1e8d00cfca0af6f27ffe477c1dd7cc1f521e608 Mon Sep 17 00:00:00 2001 From: Christof Graf Date: Mon, 9 Dec 2024 21:59:18 -0500 Subject: [PATCH] Ensure to only enable when a key is set --- internal/services/mssql/mssql_virtual_machine_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/mssql/mssql_virtual_machine_resource.go b/internal/services/mssql/mssql_virtual_machine_resource.go index ea09b264cb9a..6638ae80a57d 100644 --- a/internal/services/mssql/mssql_virtual_machine_resource.go +++ b/internal/services/mssql/mssql_virtual_machine_resource.go @@ -852,7 +852,7 @@ func expandSqlVirtualMachineAutoBackupSettings(input []interface{}) (*sqlvirtual ret.StorageAccessKey = utils.String(v.(string)) } - if v, ok := config["encryption_password"]; ok { + if v, ok := config["encryption_password"]; ok && v.(string) != "" { ret.EnableEncryption = utils.Bool(true) ret.Password = utils.String(v.(string)) } else {