I can not create a linked service in Azure Data Factory

Veizi Ioanna 10 Reputation points
2024-01-18T12:57:23.45+00:00

Hi, I am trying to create a linked service in Azure Data factory but I can not. The connection is successful but can not create the linked service. The error I get is the following: Failed to encrypt sub-resource payload { "Id": "/subscriptions/174d468f-89a6-400e-8aec-d970c75b7e41/resourceGroups/Data_Factory-TUEV-GROUP-IT/providers/Microsoft.DataFactory/factories/DF-TUEVAUSTRIAGROUP/linkedservices/SqlServer2", "Name": "SqlServer2", "Properties": { "annotations": [], "type": "SqlServer", "typeProperties": { "connectionString": "********************" }, "connectVia": { "referenceName": "OnPremVio", "type": "IntegrationRuntimeReference" } } } and error is: Failed to encrypted linked service credentials on self-hosted IR 'OnPremVio', reason is: RequestTimeout, error message is: Request Timeout..

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,356 Reputation points Microsoft Employee Moderator
    2024-01-19T00:08:53.52+00:00

    Hello Veizi Ioanna,

    From the error message it seems like your source data  factory might have a non linked SHIR that you are using in your linked service. 

    If this the case, you need to set SHIR in a ternary data factory and share it out and utilize linked SHIRs in the data factory where you export the templates

    This is discussed at https://docs.microsoft.com/en-us/azure/data-factory/continuous-integration-deployment#best-practices-for-cicd.

    I hope this helps.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.