Open druckman1 opened 3 weeks ago
I can create a non-functional linked service if I provide the resource module any accepted value (I don't know the complete list of acceptable values for AzureSqlDatabase
)
For example, if I were to add tenant
to the type_properties_json
field, the linked service would be created. The values I have found that will be populated in the linked service are case-sensitive.
Here is a code chunk that applies successfully.
resource "azurerm_synapse_linked_service" "example" {
name = "example98186519845"
synapse_workspace_id = azurerm_synapse_workspace.example.id
type = "AzureSqlDatabase"
# SecretName needs to match the secret placed in the Key Vault
type_properties_json = <<JSON
{
"server": "db-apps-dev.database.windows.net",
"database": "dbOfInterest",
"encrypt": "mandatory",
"trustServerCertificate": false,
"authenticationType": "SystemAssignedManagedIdentity",
"tenant": "<tenant_id>"
}
JSON
Here is the resulting linked service json.
{
"name": "example98186519845",
"type": "Microsoft.Synapse/workspaces/linkedservices",
"properties": {
"type": "AzureSqlDatabase",
"typeProperties": {
"tenant": "<tenant_id>"
},
"annotations": []
}
}
Most of the values listed in this table, are not applied to the final linked service for AzureSqlDatabase
I haven't tested every value, but I was only able to get 3 or 4 values through into the linked service.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.5
AzureRM Provider Version
3.116.0
Affected Resource(s)/Data Source(s)
synapse_linked_service_resource, azurerm_synapse_workspace
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The values of type_properties_json should have been populated and resulted in the creation of an AzureSqlDatabase linked service
The behavior should reflect this terraform plan
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
No response
References
The behavior seems related to this