Mike
Mike

Reputation: 3

Trying to read a file in Azure DevOps from ADF pipeline using a web activity

I am receiving this error using a managed identity...

Microsoft Internet Explorer; Enhanced Security Configuration is currently enabled on your environment. This enhanced level of security prevents our web integration experiences from displaying or performing correctly. To continue with your operation please disable this configuration or contact your administrator.

I can access the DevOps file from a browser window, but not in the ADF pipeline.

Web activity

enter image description here

enter image description here

URL - https://dev.azure.com/MB/sql1-mb/_apis/git/repositories/sql1-mb/items?path=/sql-code/readme.md&download=true&api-version=7.1

Azure Access

enter image description here

Azure DevOps access

enter image description here

enter image description here

Upvotes: 0

Views: 44

Answers (1)

Ziyang Liu-MSFT
Ziyang Liu-MSFT

Reputation: 5296

To access Azure DevOps via REST API, the Resource of the web activity should be 499b84ac-1321-427f-aa17-267ca6975798, which is the resource ID for Azure DevOps services. According to your screenshot, you are using a System-assigned managed identity for authentication. You should add this system-assigned managed identity into your DevOps organization, assign Basic access level and add it into Contributors group. Share my working steps for your reference.

  1. Configure Web activity

    • Authentication: System-assigned managed identity

    • Resource: 499b84ac-1321-427f-aa17-267ca6975798 enter image description here

  2. Find your ADF system-assigned managed identity

    Go your ADF -> Settings -> Properties -> Find and copy Managed Identity Application ID.

    enter image description here

  3. Add your ADF system-assigned managed identity into Azure DevOps organization via its Managed Identity Application ID. Assign it with Basic access level (Basic access level is required for accessing Azure Repo) and add it into Contributors group of your target project.

    enter image description here

  4. Result

    enter image description here

Upvotes: 0

Related Questions