question

PeterMa-0048 avatar image
0 Votes"
PeterMa-0048 asked ShaikMaheer-MSFT commented

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ShaikMaheer-MSFT avatar image
0 Votes"
ShaikMaheer-MSFT answered ShaikMaheer-MSFT commented

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.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Two questions:

  1. Remote Desktop doesn't allow me to use it as a devlopment machine....(no development tools allowed on it)

  2. Even if I resolved the issue of my local machine, how can I run the services in Azure(I will deploy the code to Azure Function App)

Thanks,
Peter



0 Votes 0 ·

Hi anonymous user-0048 ,

I reached internal ADF product team on this ask. I will revert soon with updates. Thank you.

0 Votes 0 ·

Hi anonymous user-0048 ,

Looped you in internal email with product team. Thank you.

0 Votes 0 ·