1. Packages
  2. Azure Classic
  3. API Docs
  4. datafactory
  5. LinkedServiceAzureSqlDatabase

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.datafactory.LinkedServiceAzureSqlDatabase

Explore with Pulumi AI

Manages a Linked Service (connection) between Azure SQL Database and Azure Data Factory.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleFactory = new azure.datafactory.Factory("example", {
    name: "example",
    location: example.location,
    resourceGroupName: example.name,
});
const exampleLinkedServiceAzureSqlDatabase = new azure.datafactory.LinkedServiceAzureSqlDatabase("example", {
    name: "example",
    dataFactoryId: exampleFactory.id,
    connectionString: "data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_factory = azure.datafactory.Factory("example",
    name="example",
    location=example.location,
    resource_group_name=example.name)
example_linked_service_azure_sql_database = azure.datafactory.LinkedServiceAzureSqlDatabase("example",
    name="example",
    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")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/datafactory"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{
			Name:              pulumi.String("example"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		_, err = datafactory.NewLinkedServiceAzureSqlDatabase(ctx, "example", &datafactory.LinkedServiceAzureSqlDatabaseArgs{
			Name:             pulumi.String("example"),
			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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleFactory = new Azure.DataFactory.Factory("example", new()
    {
        Name = "example",
        Location = example.Location,
        ResourceGroupName = example.Name,
    });

    var exampleLinkedServiceAzureSqlDatabase = new Azure.DataFactory.LinkedServiceAzureSqlDatabase("example", new()
    {
        Name = "example",
        DataFactoryId = exampleFactory.Id,
        ConnectionString = "data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.datafactory.Factory;
import com.pulumi.azure.datafactory.FactoryArgs;
import com.pulumi.azure.datafactory.LinkedServiceAzureSqlDatabase;
import com.pulumi.azure.datafactory.LinkedServiceAzureSqlDatabaseArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleFactory = new Factory("exampleFactory", FactoryArgs.builder()
            .name("example")
            .location(example.location())
            .resourceGroupName(example.name())
            .build());

        var exampleLinkedServiceAzureSqlDatabase = new LinkedServiceAzureSqlDatabase("exampleLinkedServiceAzureSqlDatabase", LinkedServiceAzureSqlDatabaseArgs.builder()
            .name("example")
            .dataFactoryId(exampleFactory.id())
            .connectionString("data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30")
            .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleFactory:
    type: azure:datafactory:Factory
    name: example
    properties:
      name: example
      location: ${example.location}
      resourceGroupName: ${example.name}
  exampleLinkedServiceAzureSqlDatabase:
    type: azure:datafactory:LinkedServiceAzureSqlDatabase
    name: example
    properties:
      name: example
      dataFactoryId: ${exampleFactory.id}
      connectionString: data source=serverhostname;initial catalog=master;user id=testUser;Password=test;integrated security=False;encrypt=True;connection timeout=30
Copy

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,
                                  data_factory_id: Optional[str] = None,
                                  integration_runtime_name: Optional[str] = None,
                                  key_vault_password: Optional[LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs] = None,
                                  credential_name: Optional[str] = None,
                                  annotations: Optional[Sequence[str]] = None,
                                  description: Optional[str] = None,
                                  additional_properties: Optional[Mapping[str, str]] = None,
                                  key_vault_connection_string: Optional[LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs] = None,
                                  connection_string: Optional[str] = None,
                                  name: Optional[str] = None,
                                  parameters: 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 This property is required. string
The unique name of the resource.
args This property is required. LinkedServiceAzureSqlDatabaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LinkedServiceAzureSqlDatabaseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LinkedServiceAzureSqlDatabaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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()
{
    DataFactoryId = "string",
    IntegrationRuntimeName = "string",
    KeyVaultPassword = new Azure.DataFactory.Inputs.LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
    {
        LinkedServiceName = "string",
        SecretName = "string",
    },
    CredentialName = "string",
    Annotations = new[]
    {
        "string",
    },
    Description = "string",
    AdditionalProperties = 
    {
        { "string", "string" },
    },
    KeyVaultConnectionString = new Azure.DataFactory.Inputs.LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
    {
        LinkedServiceName = "string",
        SecretName = "string",
    },
    ConnectionString = "string",
    Name = "string",
    Parameters = 
    {
        { "string", "string" },
    },
    ServicePrincipalId = "string",
    ServicePrincipalKey = "string",
    TenantId = "string",
    UseManagedIdentity = false,
});
Copy
example, err := datafactory.NewLinkedServiceAzureSqlDatabase(ctx, "linkedServiceAzureSqlDatabaseResource", &datafactory.LinkedServiceAzureSqlDatabaseArgs{
	DataFactoryId:          pulumi.String("string"),
	IntegrationRuntimeName: pulumi.String("string"),
	KeyVaultPassword: &datafactory.LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs{
		LinkedServiceName: pulumi.String("string"),
		SecretName:        pulumi.String("string"),
	},
	CredentialName: pulumi.String("string"),
	Annotations: pulumi.StringArray{
		pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	AdditionalProperties: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	KeyVaultConnectionString: &datafactory.LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs{
		LinkedServiceName: pulumi.String("string"),
		SecretName:        pulumi.String("string"),
	},
	ConnectionString: pulumi.String("string"),
	Name:             pulumi.String("string"),
	Parameters: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ServicePrincipalId:  pulumi.String("string"),
	ServicePrincipalKey: pulumi.String("string"),
	TenantId:            pulumi.String("string"),
	UseManagedIdentity:  pulumi.Bool(false),
})
Copy
var linkedServiceAzureSqlDatabaseResource = new LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource", LinkedServiceAzureSqlDatabaseArgs.builder()
    .dataFactoryId("string")
    .integrationRuntimeName("string")
    .keyVaultPassword(LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs.builder()
        .linkedServiceName("string")
        .secretName("string")
        .build())
    .credentialName("string")
    .annotations("string")
    .description("string")
    .additionalProperties(Map.of("string", "string"))
    .keyVaultConnectionString(LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs.builder()
        .linkedServiceName("string")
        .secretName("string")
        .build())
    .connectionString("string")
    .name("string")
    .parameters(Map.of("string", "string"))
    .servicePrincipalId("string")
    .servicePrincipalKey("string")
    .tenantId("string")
    .useManagedIdentity(false)
    .build());
Copy
linked_service_azure_sql_database_resource = azure.datafactory.LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource",
    data_factory_id="string",
    integration_runtime_name="string",
    key_vault_password={
        "linked_service_name": "string",
        "secret_name": "string",
    },
    credential_name="string",
    annotations=["string"],
    description="string",
    additional_properties={
        "string": "string",
    },
    key_vault_connection_string={
        "linked_service_name": "string",
        "secret_name": "string",
    },
    connection_string="string",
    name="string",
    parameters={
        "string": "string",
    },
    service_principal_id="string",
    service_principal_key="string",
    tenant_id="string",
    use_managed_identity=False)
Copy
const linkedServiceAzureSqlDatabaseResource = new azure.datafactory.LinkedServiceAzureSqlDatabase("linkedServiceAzureSqlDatabaseResource", {
    dataFactoryId: "string",
    integrationRuntimeName: "string",
    keyVaultPassword: {
        linkedServiceName: "string",
        secretName: "string",
    },
    credentialName: "string",
    annotations: ["string"],
    description: "string",
    additionalProperties: {
        string: "string",
    },
    keyVaultConnectionString: {
        linkedServiceName: "string",
        secretName: "string",
    },
    connectionString: "string",
    name: "string",
    parameters: {
        string: "string",
    },
    servicePrincipalId: "string",
    servicePrincipalKey: "string",
    tenantId: "string",
    useManagedIdentity: false,
});
Copy
type: azure:datafactory:LinkedServiceAzureSqlDatabase
properties:
    additionalProperties:
        string: string
    annotations:
        - string
    connectionString: string
    credentialName: string
    dataFactoryId: string
    description: string
    integrationRuntimeName: string
    keyVaultConnectionString:
        linkedServiceName: string
        secretName: string
    keyVaultPassword:
        linkedServiceName: string
        secretName: string
    name: string
    parameters:
        string: string
    servicePrincipalId: string
    servicePrincipalKey: string
    tenantId: string
    useManagedIdentity: false
Copy

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:

DataFactoryId
This property is required.
Changes to this property will trigger replacement.
string
The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
AdditionalProperties 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.
ConnectionString string
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
CredentialName string
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
Description string
The description for the Data Factory Linked Service Azure SQL Database.
IntegrationRuntimeName string
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPassword
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
ServicePrincipalId string
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
ServicePrincipalKey string
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
TenantId string
The tenant id or name in which to authenticate against the Azure SQL Database.
UseManagedIdentity bool
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
DataFactoryId
This property is required.
Changes to this property will trigger replacement.
string
The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
AdditionalProperties 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.
ConnectionString string
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
CredentialName string
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
Description string
The description for the Data Factory Linked Service Azure SQL Database.
IntegrationRuntimeName string
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
ServicePrincipalId string
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
ServicePrincipalKey string
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
TenantId string
The tenant id or name in which to authenticate against the Azure SQL Database.
UseManagedIdentity bool
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
dataFactoryId
This property is required.
Changes to this property will trigger replacement.
String
The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
additionalProperties 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.
connectionString String
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
credentialName String
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
description String
The description for the Data Factory Linked Service Azure SQL Database.
integrationRuntimeName String
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
keyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
keyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPassword
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
servicePrincipalId String
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
servicePrincipalKey String
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenantId String
The tenant id or name in which to authenticate against the Azure SQL Database.
useManagedIdentity Boolean
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
dataFactoryId
This property is required.
Changes to this property will trigger replacement.
string
The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
additionalProperties {[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.
connectionString string
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
credentialName string
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
description string
The description for the Data Factory Linked Service Azure SQL Database.
integrationRuntimeName string
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
keyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
keyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPassword
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
servicePrincipalId string
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
servicePrincipalKey string
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenantId string
The tenant id or name in which to authenticate against the Azure SQL Database.
useManagedIdentity boolean
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
data_factory_id
This property is required.
Changes to this property will trigger replacement.
str
The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
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_string or key_vault_connection_string is required.
credential_name str
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
description str
The description for the Data Factory Linked Service Azure SQL Database.
integration_runtime_name str
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
key_vault_connection_string LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
key_vault_password LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
A key_vault_password block 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 Changes to this property will trigger replacement. 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_id str
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
service_principal_key str
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenant_id str
The tenant id or name in which to authenticate against the Azure SQL Database.
use_managed_identity bool
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
dataFactoryId
This property is required.
Changes to this property will trigger replacement.
String
The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
additionalProperties 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.
connectionString String
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
credentialName String
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
description String
The description for the Data Factory Linked Service Azure SQL Database.
integrationRuntimeName String
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
keyVaultConnectionString Property Map
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
keyVaultPassword Property Map
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
servicePrincipalId String
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
servicePrincipalKey String
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenantId String
The tenant id or name in which to authenticate against the Azure SQL Database.
useManagedIdentity Boolean
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_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,
        credential_name: Optional[str] = None,
        data_factory_id: 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,
        service_principal_id: Optional[str] = None,
        service_principal_key: Optional[str] = None,
        tenant_id: Optional[str] = None,
        use_managed_identity: Optional[bool] = None) -> LinkedServiceAzureSqlDatabase
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AdditionalProperties 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.
ConnectionString string
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
CredentialName string
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
DataFactoryId Changes to this property will trigger replacement. string
The Data Factory ID 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.
IntegrationRuntimeName string
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPassword
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
ServicePrincipalId string
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
ServicePrincipalKey string
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
TenantId string
The tenant id or name in which to authenticate against the Azure SQL Database.
UseManagedIdentity bool
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
AdditionalProperties 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.
ConnectionString string
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
CredentialName string
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
DataFactoryId Changes to this property will trigger replacement. string
The Data Factory ID 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.
IntegrationRuntimeName string
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
KeyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
KeyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
ServicePrincipalId string
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
ServicePrincipalKey string
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
TenantId string
The tenant id or name in which to authenticate against the Azure SQL Database.
UseManagedIdentity bool
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
additionalProperties 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.
connectionString String
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
credentialName String
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
dataFactoryId Changes to this property will trigger replacement. String
The Data Factory ID 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.
integrationRuntimeName String
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
keyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
keyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPassword
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
servicePrincipalId String
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
servicePrincipalKey String
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenantId String
The tenant id or name in which to authenticate against the Azure SQL Database.
useManagedIdentity Boolean
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
additionalProperties {[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.
connectionString string
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
credentialName string
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
dataFactoryId Changes to this property will trigger replacement. string
The Data Factory ID 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.
integrationRuntimeName string
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
keyVaultConnectionString LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
keyVaultPassword LinkedServiceAzureSqlDatabaseKeyVaultPassword
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
servicePrincipalId string
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
servicePrincipalKey string
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenantId string
The tenant id or name in which to authenticate against the Azure SQL Database.
useManagedIdentity boolean
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_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_string or key_vault_connection_string is required.
credential_name str
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
data_factory_id Changes to this property will trigger replacement. str
The Data Factory ID 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_name str
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
key_vault_connection_string LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
key_vault_password LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs
A key_vault_password block 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 Changes to this property will trigger replacement. 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_id str
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
service_principal_key str
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenant_id str
The tenant id or name in which to authenticate against the Azure SQL Database.
use_managed_identity bool
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key
additionalProperties 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.
connectionString String
The connection string in which to authenticate with Azure SQL Database. Exactly one of either connection_string or key_vault_connection_string is required.
credentialName String
The name of a User-assigned Managed Identity. Use this argument to authenticate against the linked resource using a User-assigned Managed Identity.
dataFactoryId Changes to this property will trigger replacement. String
The Data Factory ID 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.
integrationRuntimeName String
The integration runtime reference to associate with the Data Factory Linked Service Azure SQL Database.
keyVaultConnectionString Property Map
A key_vault_connection_string block 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 either connection_string or key_vault_connection_string is required.
keyVaultPassword Property Map
A key_vault_password block 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 Changes to this property will trigger replacement. 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.
servicePrincipalId String
The service principal id in which to authenticate against the Azure SQL Database. Required if service_principal_key is set.
servicePrincipalKey String
The service principal key in which to authenticate against the Azure SQL Database. Required if service_principal_id is set.
tenantId String
The tenant id or name in which to authenticate against the Azure SQL Database.
useManagedIdentity Boolean
Whether to use the Data Factory's managed identity to authenticate against the Azure SQL Database. Incompatible with service_principal_id and service_principal_key

Supporting Types

LinkedServiceAzureSqlDatabaseKeyVaultConnectionString
, LinkedServiceAzureSqlDatabaseKeyVaultConnectionStringArgs

LinkedServiceName This property is required. string
Specifies the name of an existing Key Vault Data Factory Linked Service.
SecretName This property is required. string
Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
LinkedServiceName This property is required. string
Specifies the name of an existing Key Vault Data Factory Linked Service.
SecretName This property is required. string
Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
linkedServiceName This property is required. String
Specifies the name of an existing Key Vault Data Factory Linked Service.
secretName This property is required. String
Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
linkedServiceName This property is required. string
Specifies the name of an existing Key Vault Data Factory Linked Service.
secretName This property is required. string
Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
linked_service_name This property is required. str
Specifies the name of an existing Key Vault Data Factory Linked Service.
secret_name This property is required. str
Specifies the secret name in Azure Key Vault that stores SQL Server connection string.
linkedServiceName This property is required. String
Specifies the name of an existing Key Vault Data Factory Linked Service.
secretName This property is required. String
Specifies the secret name in Azure Key Vault that stores SQL Server connection string.

LinkedServiceAzureSqlDatabaseKeyVaultPassword
, LinkedServiceAzureSqlDatabaseKeyVaultPasswordArgs

LinkedServiceName This property is required. string
Specifies the name of an existing Key Vault Data Factory Linked Service.
SecretName This property is required. string
Specifies the secret name in Azure Key Vault that stores SQL Server password.
LinkedServiceName This property is required. string
Specifies the name of an existing Key Vault Data Factory Linked Service.
SecretName This property is required. string
Specifies the secret name in Azure Key Vault that stores SQL Server password.
linkedServiceName This property is required. String
Specifies the name of an existing Key Vault Data Factory Linked Service.
secretName This property is required. String
Specifies the secret name in Azure Key Vault that stores SQL Server password.
linkedServiceName This property is required. string
Specifies the name of an existing Key Vault Data Factory Linked Service.
secretName This property is required. string
Specifies the secret name in Azure Key Vault that stores SQL Server password.
linked_service_name This property is required. str
Specifies the name of an existing Key Vault Data Factory Linked Service.
secret_name This property is required. str
Specifies the secret name in Azure Key Vault that stores SQL Server password.
linkedServiceName This property is required. String
Specifies the name of an existing Key Vault Data Factory Linked Service.
secretName This property is required. 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
Copy

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 azurerm Terraform Provider.