Integration runtime Unable to connect to Data Factory

Rajaniesh Kaushikk 476 Reputation points
2020-10-26T22:01:46.07+00:00

Hi,

I have setup Data Factory and used Private Endpoints to connect to Data Factory. After Deploying Integration runtime It is not able to connect and throwing this error:

Failed to get service token from ADF service with key XXXXXXXXX@ServiceEndpoint=DataFactoryName.eastus2.datafactory.azure.net@****************** and time cost is: 0.5816775 seconds, the error code is: InvalidGatewayKey, activityId is: XXXXXXXXXXXX and detailed error message is Client IP address is not valid private ip..  
  
    at Microsoft.DataTransfer.DIAgentHost.NamedPipeControllers.NamedPipeGatewayClientController.AttachGatewayNode(String[] args)  
   at Microsoft.DataTransfer.DIAgentHost.NamedPipeServer.MapNamedPipeRequestToController(String requestTemplate, NamedPipeStreamString ss, NamedPipeDataContract`1 result, String temp)  
   at Microsoft.DataTransfer.DIAgentHost.NamedPipeServer.PipeServerThread(Object data)  
Failed to get service token from ADF service with key IRXXXXXXb@DataFactoryName@ServiceEndpoint=DataFactoryName.eastus2.datafactory.azure.net@****************** and time cost is: 0.5816775 seconds, the error code is: InvalidGatewayKey, activityId is: YYYYYYYYYYYYYYYYYY and detailed error message is Client IP address is not valid private ip..  
   
  
One or more errors occurred.  
Failed to get service token from ADF service with key IR@XXXXXXX@DataFactoryName@ServiceEndpoint=DataFactoryName.eastus2.datafactory.azure.net@****************** and time cost is: 0.5816775 seconds, the error code is: InvalidGatewayKey, activityId is: YYYYYYYYYand detailed error message is Client IP address is not valid private ip..  

Any Clue!!

Regards
Rajaniesh

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

2 answers

Sort by: Most helpful
  1. Evangeline Kaliski 6 Reputation points
    2020-12-05T01:51:43.843+00:00

    @MartinJaffer-MSFT

    I have the same set up and error.

    Enabling publicNetworkAccess does make registration successful but I'm trying to keep everything private.

    How can I configure Self Hosted IR to configure on prem SQL to Azure Data Factory so everything is private IP access and not go over public network?
    Is Self-Hosted IR over public network secure?

    thanks
    Evangeline

    1 person found this answer helpful.

  2. MartinJaffer-MSFT 26,051 Reputation points
    2020-10-27T23:07:12.787+00:00

    If your Interation Runtime is Self-Hosted (SHIR), @Rajaniesh Kaushikk , please try the following:

    1. Go to https://video2.skills-academy.com/en-us/rest/api/datafactory/Factories/Update
    2. Click on "Try It" and fill out the necessary fields. In the body, put { "tags": { "publicNetworkAccess":"Enabled" } }
    3. Make sure the response code is 200, and you can see { "tags": { "publicNetworkAccess":"Enabled" } } in the response body.
    4. Try registering the IR authentication key again (in the integration runtime). It should work.

    OR

    1. In the portal go to the "Network Access" screen in the "Settings" of the Data Factory. (see picture)
    2. "Set the Allow Public Network Access" to "Enabled"
    3. Try registering the IR authentication key again (in the integration runtime). It should work.