[ADF publishment through Devops] 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.

Weidan Deng 1 Reputation point
2020-12-30T09:22:26.703+00:00

I used task: PublishADFTask@0 to programmatically publish ADF. It succeed on my own account. But when I deploy it to my torus account, it failed with the following error message:

2020-12-30T06:57:33.1486072Z ##[error]HTTP Status Code: Unauthorized
Error Code: ClientIPNotAuthorized
Error Message: 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.

I'm using a service principal to access the ADF.

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

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,236 Reputation points
    2020-12-30T20:18:20.547+00:00

    Hello @Weidan Deng and welcome to Microsoft Q&A.

    I have seen this error message after enabling the internal-only scope feature. I do not know what a torus account is. Please let me know if the scope feature is not involved. As this is an internal-only feature I cannot share the solution publicly here. I will reach out to you via other means.

    EDIT: due to demand, here is link to TSG (MSFT only)


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.