Azure Storage Linked Service

 

Important

This topic provides the JSON format that is supported by the older versions of Azure PowerShell. If you are using the July 2015 Release version of Azure PowerShell or later, see Azure Storage Linked Service for the latest JSON format. You can convert the JSON from old format to new format by using the tool: JSON Upgrade Tool 

You create an Azure storage linked service to link an Azure storage account to an Azure data factory. This topic describes syntax for defining an Azure Storage linked service in a JSON file. When you use the Data Factory Editor in Azure Portal, the editor provides you a JSON template for defining a linked service that you can modify and deploy to create a linked service. To use the T:Microsoft.Azure.Commands.DataFactories.New-AzureDataFactoryLinkedService cmdlet to create a linked service, you will need to create a JSON file and use it with the cmdlet.

When creating a dataset based on this linked service, you set the location type in the dataset JSON to: Azure Blob or Azure Table depending on whether you are using an Azure blob (or) an Azure table. When creating a pipeline, you set the source type to BlobSource properties or AzureTableSource properties if you are using Azure blob/table as a source in a copy operation. You set the sink type to BlobSink properties or AzureTableSink properties if you are using Azure blob/table as a sink with the copy operation.

Properties

Property

Description

type

The type property should be set to AzureStorageLinkedService.

connectionString

Specify information needed to connect to Azure storage for the connectionString property. You can get the connectionString for the Azure storage from the Azure Portal

Example

{
    "name": "MyAzureStorage",
    "properties":
    {
        "type": "AzureStorageLinkedService",
        "connectionString": "DefaultEndpointsProtocol=https;AccountName=<accountname>;AccountKey=<accountkey>" "
    }
}