I enabled Scope script support in ADF, How can I call the ADF by .NET SDK?

Peter Ma 211 Reputation points Microsoft Employee
2021-07-23T20:59:37.303+00:00

Hi,

I have enabled the ADF Scope Script Support and I ran the pipeline manully from Remote Desktop(I cannot run pipeline from my laptop because I'm working from home now and the "Client IP not authorized to access the API").

But now I need to run the pipeline from a .NET services(is in development now and I need to test it locally) uses the .NET SDK of ADF.

I also get the error message:

System.Private.CoreLib: Exception while executing function: RunPipeline. System.Private.CoreLib: One or more errors occurred. (Client IP not authorized to access the API. Please ensure you are on corpnet, or that your IP is on an allowlist for the activities in your pipeline.). Microsoft.Azure.Management.DataFactory: Client IP not authorized to access the API. Please ensure you are on corpnet, or that your IP is on an allowlist for the activities in your pipeline.

How can I resolve this issue?
Also how to resolve this issue when I deploy the services in Azure in future?

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

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,441 Reputation points Microsoft Employee
    2021-07-26T06:16:57.05+00:00

    Hi anonymous user-0048 ,

    Thank you for posting query in Microsoft Q&A Platform. Azure data factory which enabled scope will only work on Corporate network.

    Since your .NET code is running from local machine(which is not on corporate network) you end up with this issue.

    You can avoid this error by hosting your code on corporate network by moving your code on to Remote desktop.

    Hope this will help. Please let us know if any further queries. Thank you.

    ------------------------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

Your answer

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