Skip to content

Commit

Permalink
azurerm_data_factory_linked_service_azure_sql_database - send `tena…
Browse files Browse the repository at this point in the history
…nt_id` only if it has been specified (hashicorp#28120)
  • Loading branch information
mbfrahry authored Nov 27, 2024
1 parent 22a7d7e commit 1b4acd8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1b4acd8

Please sign in to comment.