ADF- Create Linked Service with Power Shell - Azure Data Factory

Опубликовано: 25 Июль 2026
на канале: ramit girdhar
783
5

Create a linked service
Create linked services in a data factory to link your data stores and compute services to the data factory. In this quickstart, you create an Azure Storage linked service that is used as both the source and sink stores. The linked service has the connection information that the Data Factory service uses at runtime to connect to it.

Create a JSON file named AzureStorageLinkedService.json in C:\ADFv2QuickStartPSH folder with the following content: (Create the folder ADFv2QuickStartPSH if it does not already exist.).



In PowerShell, switch to the ADFv2QuickStartPSH folder.

PowerShell

Copy
Set-Location 'C:\ADFv2QuickStartPSH'
Run the Set-AzDataFactoryV2LinkedService cmdlet to create the linked service: AzureStorageLinkedService.

PowerShell

Copy
Set-AzDataFactoryV2LinkedService -DataFactoryName $DataFactory.DataFactoryName `
-ResourceGroupName $ResGrp.ResourceGroupName -Name "AzureStorageLinkedService" `
-DefinitionFile ".\AzureStorageLinkedService.json"
Here is the sample output: