From 1b4acd8294418e46cddcf5f3b36a7198567434e9 Mon Sep 17 00:00:00 2001 From: Matthew Frahry Date: Tue, 26 Nov 2024 16:37:07 -0800 Subject: [PATCH] `azurerm_data_factory_linked_service_azure_sql_database` - send `tenant_id` only if it has been specified (#28120) --- ...data_factory_linked_service_azure_sql_database_resource.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go b/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go index d95ef31e1f0d..30c1182597d3 100644 --- a/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go +++ b/internal/services/datafactory/data_factory_linked_service_azure_sql_database_resource.go @@ -234,8 +234,10 @@ func resourceDataFactoryLinkedServiceAzureSQLDatabaseCreateUpdate(d *pluginsdk.R } sqlDatabaseProperties.ServicePrincipalID = utils.String(d.Get("service_principal_id").(string)) - sqlDatabaseProperties.Tenant = utils.String(d.Get("tenant_id").(string)) sqlDatabaseProperties.ServicePrincipalKey = &secureString + if v := d.Get("tenant_id").(string); v != "" { + sqlDatabaseProperties.Tenant = pointer.To(v) + } } if v, ok := d.GetOk("key_vault_password"); ok {