We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Linked Service (connection) between Azure SQL Database and Azure Data Factory.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleFactory = new Azure.DataFactory.Factory("exampleFactory", new Azure.DataFactory.FactoryArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleLinkedServiceAzureSqlDatabase = new Azure.DataFactory.LinkedServiceAzureSqlDatabase("exampleLinkedServiceAzureSqlDatabase", new Azure.DataFactory.LinkedServiceAzureSqlDatabaseArgs
{
ResourceGroupName = exampleResourceGroup.Name,
DataFactoryId = exampleFactory.Id,
ConnectionString = "data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/datafactory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleFactory, err := datafactory.NewFactory(ctx, "exampleFactory", &datafactory.FactoryArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
_, err = datafactory.NewLinkedServiceAzureSqlDatabase(ctx, "exampleLinkedServiceAzureSqlDatabase", &datafactory.LinkedServiceAzureSqlDatabaseArgs{
ResourceGroupName: exampleResourceGroup.Name,
DataFactoryId: exampleFactory.ID(),
ConnectionString: pulumi.String("data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30"),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleFactory = new azure.datafactory.Factory("exampleFactory", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleLinkedServiceAzureSqlDatabase = new azure.datafactory.LinkedServiceAzureSqlDatabase("exampleLinkedServiceAzureSqlDatabase", {
resourceGroupName: exampleResourceGroup.name,
dataFactoryId: exampleFactory.id,
connectionString: "data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30",
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_factory = azure.datafactory.Factory("exampleFactory",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_linked_service_azure_sql_database = azure.datafactory.LinkedServiceAzureSqlDatabase("exampleLinkedServiceAzureSqlDatabase",
resource_group_name=example_resource_group.name,
data_factory_id=example_factory.id,
connection_string="data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30")
Example coming soon!
Create LinkedServiceAzureSqlDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LinkedServiceAzureSqlDatabase(name: string, args: LinkedServiceAzureSqlDatabaseArgs, opts?: CustomResourceOptions);@overload
def LinkedServiceAzureSqlDatabase(resource_name: str,
args: LinkedServiceAzureSqlDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LinkedServiceAzureSqlDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
key_vault_password: Optional[LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs] = None,
annotations: Optional[Sequence[str]] = None,
data_factory_id: Optional[str] = None,
data_factory_name: Optional[str] = None,
description: Optional[str] = None,
integration_runtime_name: Optional[str] = None,
connection_string: Optional[str] = None,
name: Optional[str] = None,
key_vault_connection_string: Optional[LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs] = None,
parameters: Optional[Mapping[str, str]] = None,
additional_properties: Optional[Mapping[str, str]] = None,
service_principal_id: Optional[str] = None,
service_principal_key: Optional[str] = None,
tenant_id: Optional[str] = None,
use_managed_identity: Optional[bool] = None)func NewLinkedServiceAzureSqlDatabase(ctx *Context, name string, args LinkedServiceAzureSqlDatabaseArgs, opts ...ResourceOption) (*LinkedServiceAzureSqlDatabase, error)public LinkedServiceAzureSqlDatabase(string name, LinkedServiceAzureSqlDatabaseArgs args, CustomResourceOptions? opts = null)
public LinkedServiceAzureSqlDatabase(String name, LinkedServiceAzureSqlDatabaseArgs args)
public LinkedServiceAzureSqlDatabase(String name, LinkedServiceAzureSqlDatabaseArgs args, CustomResourceOptions options)
type: azure:datafactory:LinkedServiceAzureSqlDatabase
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LinkedServiceAzureSqlDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LinkedServiceAzureSqlDatabaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LinkedServiceAzureSqlDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LinkedServiceAzureSqlDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LinkedServiceAzureSqlDatabaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var linkedServiceAzureSqlDatabaseResource = new Azure.DataFactory.LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource", new()
{
ResourceGroupName = "string",
KeyVaultPassword = new Azure.DataFactory.Inputs.LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
{
LinkedServiceName = "string",
SecretName = "string",
},
Annotations = new[]
{
"string",
},
DataFactoryId = "string",
Description = "string",
IntegrationRuntimeName = "string",
ConnectionString = "string",
Name = "string",
KeyVaultConnectionString = new Azure.DataFactory.Inputs.LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
{
LinkedServiceName = "string",
SecretName = "string",
},
Parameters =
{
{ "string", "string" },
},
AdditionalProperties =
{
{ "string", "string" },
},
ServicePrincipalId = "string",
ServicePrincipalKey = "string",
TenantId = "string",
UseManagedIdentity = false,
});
example, err := datafactory.NewLinkedServiceAzureSqlDatabase(ctx, "linkedServiceAzureSqlDatabaseResource", &datafactory.LinkedServiceAzureSqlDatabaseArgs{
ResourceGroupName: pulumi.String("string"),
KeyVaultPassword: &datafactory.LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs{
LinkedServiceName: pulumi.String("string"),
SecretName: pulumi.String("string"),
},
Annotations: pulumi.StringArray{
pulumi.String("string"),
},
DataFactoryId: pulumi.String("string"),
Description: pulumi.String("string"),
IntegrationRuntimeName: pulumi.String("string"),
ConnectionString: pulumi.String("string"),
Name: pulumi.String("string"),
KeyVaultConnectionString: &datafactory.LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs{
LinkedServiceName: pulumi.String("string"),
SecretName: pulumi.String("string"),
},
Parameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
AdditionalProperties: pulumi.StringMap{
"string": pulumi.String("string"),
},
ServicePrincipalId: pulumi.String("string"),
ServicePrincipalKey: pulumi.String("string"),
TenantId: pulumi.String("string"),
UseManagedIdentity: pulumi.Bool(false),
})
var linkedServiceAzureSqlDatabaseResource = new LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource", LinkedServiceAzureSqlDatabaseArgs.builder()
.resourceGroupName("string")
.keyVaultPassword(LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs.builder()
.linkedServiceName("string")
.secretName("string")
.build())
.annotations("string")
.dataFactoryId("string")
.description("string")
.integrationRuntimeName("string")
.connectionString("string")
.name("string")
.keyVaultConnectionString(LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs.builder()
.linkedServiceName("string")
.secretName("string")
.build())
.parameters(Map.of("string", "string"))
.additionalProperties(Map.of("string", "string"))
.servicePrincipalId("string")
.servicePrincipalKey("string")
.tenantId("string")
.useManagedIdentity(false)
.build());
linked_service_azure_sql_database_resource = azure.datafactory.LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource",
resource_group_name="string",
key_vault_password={
"linked_service_name": "string",
"secret_name": "string",
},
annotations=["string"],
data_factory_id="string",
description="string",
integration_runtime_name="string",
connection_string="string",
name="string",
key_vault_connection_string={
"linked_service_name": "string",
"secret_name": "string",
},
parameters={
"string": "string",
},
additional_properties={
"string": "string",
},
service_principal_id="string",
service_principal_key="string",
tenant_id="string",
use_managed_identity=False)
const linkedServiceAzureSqlDatabaseResource = new azure.datafactory.LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource", {
resourceGroupName: "string",
keyVaultPassword: {
linkedServiceName: "string",
secretName: "string",
},
annotations: ["string"],
dataFactoryId: "string",
description: "string",
integrationRuntimeName: "string",
connectionString: "string",
name: "string",
keyVaultConnectionString: {
linkedServiceName: "string",
secretName: "string",
},
parameters: {
string: "string",
},
additionalProperties: {
string: "string",
},
servicePrincipalId: "string",
servicePrincipalKey: "string",
tenantId: "string",
useManagedIdentity: false,
});
type: azure:datafactory:LinkedServiceAzureSqlDatabase
properties:
additionalProperties:
string: string
annotations:
- string
connectionString: string
dataFactoryId: string
description: string
integrationRuntimeName: string
keyVaultConnectionString:
linkedServiceName: string
secretName: string
keyVaultPassword:
linkedServiceName: string
secretName: string
name: string
parameters:
string: string
resourceGroupName: string
servicePrincipalId: string
servicePrincipalKey: string
tenantId: string
useManagedIdentity: false
LinkedServiceAzureSqlDatabase Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LinkedServiceAzureSqlDatabase resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- Additional
Properties Dictionary<string, string> - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- Annotations List<string>
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- Connection
String string - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - Data
Factory stringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- Data
Factory stringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- Description string
- The description for the Data Factory Linked Service Azure SQL Database.
- Integration
Runtime stringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- Key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - Key
Vault LinkedPassword Service Azure Sql Database Key Vault Password - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - Name string
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- Parameters Dictionary<string, string>
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- Service
Principal stringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - Service
Principal stringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - Tenant
Id string - The tenant id or name in which to authenticate against the Azure SQL Database.
- Use
Managed boolIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- Resource
Group stringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- Additional
Properties map[string]string - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- Annotations []string
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- Connection
String string - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - Data
Factory stringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- Data
Factory stringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- Description string
- The description for the Data Factory Linked Service Azure SQL Database.
- Integration
Runtime stringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- Key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String Args - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - Key
Vault LinkedPassword Service Azure Sql Database Key Vault Password Args - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - Name string
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- Parameters map[string]string
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- Service
Principal stringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - Service
Principal stringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - Tenant
Id string - The tenant id or name in which to authenticate against the Azure SQL Database.
- Use
Managed boolIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- resource
Group StringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- additional
Properties Map<String,String> - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations List<String>
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection
String String - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data
Factory StringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data
Factory StringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description String
- The description for the Data Factory Linked Service Azure SQL Database.
- integration
Runtime StringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key
Vault LinkedPassword Service Azure Sql Database Key Vault Password - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name String
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters Map<String,String>
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- service
Principal StringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service
Principal StringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant
Id String - The tenant id or name in which to authenticate against the Azure SQL Database.
- use
Managed BooleanIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- resource
Group stringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- additional
Properties {[key: string]: string} - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations string[]
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection
String string - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data
Factory stringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data
Factory stringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description string
- The description for the Data Factory Linked Service Azure SQL Database.
- integration
Runtime stringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key
Vault LinkedPassword Service Azure Sql Database Key Vault Password - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name string
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters {[key: string]: string}
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- service
Principal stringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service
Principal stringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant
Id string - The tenant id or name in which to authenticate against the Azure SQL Database.
- use
Managed booleanIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- resource_
group_ strname - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- additional_
properties Mapping[str, str] - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations Sequence[str]
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection_
string str - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data_
factory_ strid - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data_
factory_ strname - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description str
- The description for the Data Factory Linked Service Azure SQL Database.
- integration_
runtime_ strname - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key_
vault_ Linkedconnection_ string Service Azure Sql Database Key Vault Connection String Args - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key_
vault_ Linkedpassword Service Azure Sql Database Key Vault Password Args - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name str
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters Mapping[str, str]
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- service_
principal_ strid - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service_
principal_ strkey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant_
id str - The tenant id or name in which to authenticate against the Azure SQL Database.
- use_
managed_ boolidentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- resource
Group StringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- additional
Properties Map<String> - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations List<String>
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection
String String - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data
Factory StringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data
Factory StringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description String
- The description for the Data Factory Linked Service Azure SQL Database.
- integration
Runtime StringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key
Vault Property MapConnection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key
Vault Property MapPassword - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name String
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters Map<String>
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- service
Principal StringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service
Principal StringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant
Id String - The tenant id or name in which to authenticate against the Azure SQL Database.
- use
Managed BooleanIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
Outputs
All input properties are implicitly available as output properties. Additionally, the LinkedServiceAzureSqlDatabase resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LinkedServiceAzureSqlDatabase Resource
Get an existing LinkedServiceAzureSqlDatabase resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LinkedServiceAzureSqlDatabaseState, opts?: CustomResourceOptions): LinkedServiceAzureSqlDatabase@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
additional_properties: Optional[Mapping[str, str]] = None,
annotations: Optional[Sequence[str]] = None,
connection_string: Optional[str] = None,
data_factory_id: Optional[str] = None,
data_factory_name: Optional[str] = None,
description: Optional[str] = None,
integration_runtime_name: Optional[str] = None,
key_vault_connection_string: Optional[LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs] = None,
key_vault_password: Optional[LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs] = None,
name: Optional[str] = None,
parameters: Optional[Mapping[str, str]] = None,
resource_group_name: Optional[str] = None,
service_principal_id: Optional[str] = None,
service_principal_key: Optional[str] = None,
tenant_id: Optional[str] = None,
use_managed_identity: Optional[bool] = None) -> LinkedServiceAzureSqlDatabasefunc GetLinkedServiceAzureSqlDatabase(ctx *Context, name string, id IDInput, state *LinkedServiceAzureSqlDatabaseState, opts ...ResourceOption) (*LinkedServiceAzureSqlDatabase, error)public static LinkedServiceAzureSqlDatabase Get(string name, Input<string> id, LinkedServiceAzureSqlDatabaseState? state, CustomResourceOptions? opts = null)public static LinkedServiceAzureSqlDatabase get(String name, Output<String> id, LinkedServiceAzureSqlDatabaseState state, CustomResourceOptions options)resources: _: type: azure:datafactory:LinkedServiceAzureSqlDatabase get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Additional
Properties Dictionary<string, string> - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- Annotations List<string>
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- Connection
String string - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - Data
Factory stringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- Data
Factory stringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- Description string
- The description for the Data Factory Linked Service Azure SQL Database.
- Integration
Runtime stringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- Key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - Key
Vault LinkedPassword Service Azure Sql Database Key Vault Password - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - Name string
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- Parameters Dictionary<string, string>
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- Resource
Group stringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- Service
Principal stringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - Service
Principal stringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - Tenant
Id string - The tenant id or name in which to authenticate against the Azure SQL Database.
- Use
Managed boolIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- Additional
Properties map[string]string - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- Annotations []string
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- Connection
String string - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - Data
Factory stringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- Data
Factory stringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- Description string
- The description for the Data Factory Linked Service Azure SQL Database.
- Integration
Runtime stringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- Key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String Args - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - Key
Vault LinkedPassword Service Azure Sql Database Key Vault Password Args - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - Name string
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- Parameters map[string]string
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- Resource
Group stringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- Service
Principal stringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - Service
Principal stringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - Tenant
Id string - The tenant id or name in which to authenticate against the Azure SQL Database.
- Use
Managed boolIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- additional
Properties Map<String,String> - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations List<String>
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection
String String - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data
Factory StringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data
Factory StringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description String
- The description for the Data Factory Linked Service Azure SQL Database.
- integration
Runtime StringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key
Vault LinkedPassword Service Azure Sql Database Key Vault Password - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name String
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters Map<String,String>
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- resource
Group StringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- service
Principal StringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service
Principal StringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant
Id String - The tenant id or name in which to authenticate against the Azure SQL Database.
- use
Managed BooleanIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- additional
Properties {[key: string]: string} - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations string[]
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection
String string - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data
Factory stringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data
Factory stringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description string
- The description for the Data Factory Linked Service Azure SQL Database.
- integration
Runtime stringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key
Vault LinkedConnection String Service Azure Sql Database Key Vault Connection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key
Vault LinkedPassword Service Azure Sql Database Key Vault Password - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name string
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters {[key: string]: string}
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- resource
Group stringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- service
Principal stringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service
Principal stringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant
Id string - The tenant id or name in which to authenticate against the Azure SQL Database.
- use
Managed booleanIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- additional_
properties Mapping[str, str] - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations Sequence[str]
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection_
string str - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data_
factory_ strid - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data_
factory_ strname - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description str
- The description for the Data Factory Linked Service Azure SQL Database.
- integration_
runtime_ strname - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key_
vault_ Linkedconnection_ string Service Azure Sql Database Key Vault Connection String Args - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key_
vault_ Linkedpassword Service Azure Sql Database Key Vault Password Args - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name str
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters Mapping[str, str]
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- resource_
group_ strname - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- service_
principal_ strid - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service_
principal_ strkey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant_
id str - The tenant id or name in which to authenticate against the Azure SQL Database.
- use_
managed_ boolidentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
- additional
Properties Map<String> - A map of additional properties to associate with the Data Factory Linked Service Azure SQL Database.
- annotations List<String>
- List of tags that can be used for describing the Data Factory Linked Service Azure SQL Database.
- connection
String String - The connection string in which to authenticate with Azure SQL Database. Exactly one of either
connection_stringorkey_vault_connection_stringis required. - data
Factory StringId - The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
- data
Factory StringName - The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
- description String
- The description for the Data Factory Linked Service Azure SQL Database.
- integration
Runtime StringName - The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
- key
Vault Property MapConnection String - A
key_vault_connection_stringblock as defined below. Use this argument to store Azure SQL Database connection string in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. Exactly one of eitherconnection_stringorkey_vault_connection_stringis required. - key
Vault Property MapPassword - A
key_vault_passwordblock as defined below. Use this argument to store SQL Server password in an existing Key Vault. It needs an existing Key Vault Data Factory Linked Service. - name String
- Specifies the name of the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created. Must be unique within a data factory. See the Microsoft documentation for all restrictions.
- parameters Map<String>
- A map of parameters to associate with the Data Factory Linked Service Azure SQL Database.
- resource
Group StringName - The name of the resource group in which to create the Data Factory Linked Service Azure SQL Database. Changing this forces a new resource to be created.
- service
Principal StringId - The service principal id in which to authenticate against the Azure SQL Database. Required if
service_principal_keyis set. - service
Principal StringKey - The service principal key in which to authenticate against the Azure SQL Database. Required if
service_principal_idis set. - tenant
Id String - The tenant id or name in which to authenticate against the Azure SQL Database.
- use
Managed BooleanIdentity - Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with
service_principal_idandservice_principal_key
Supporting Types
LinkedServiceAzureSqlDatabaseKeyVaultConnectionString, LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
- Linked
Service stringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- Secret
Name string - Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
- Linked
Service stringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- Secret
Name string - Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
- linked
Service StringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret
Name String - Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
- linked
Service stringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret
Name string - Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
- linked_
service_ strname - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret_
name str - Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
- linked
Service StringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret
Name String - Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
LinkedServiceAzureSqlDatabaseKeyVaultPassword, LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
- Linked
Service stringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- Secret
Name string - Specifies the secret name in Azure Key Vault that stores SQL Server password.
- Linked
Service stringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- Secret
Name string - Specifies the secret name in Azure Key Vault that stores SQL Server password.
- linked
Service StringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret
Name String - Specifies the secret name in Azure Key Vault that stores SQL Server password.
- linked
Service stringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret
Name string - Specifies the secret name in Azure Key Vault that stores SQL Server password.
- linked_
service_ strname - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret_
name str - Specifies the secret name in Azure Key Vault that stores SQL Server password.
- linked
Service StringName - Specifies the name of an existing Key Vault Data Factory Linked Service.
- secret
Name String - Specifies the secret name in Azure Key Vault that stores SQL Server password.
Import
Data Factory Azure SQL Database Linked Service’s can be imported using the resource id, e.g.
$ pulumi import azure:datafactory/linkedServiceAzureSqlDatabase:LinkedServiceAzureSqlDatabase example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
