Not able to create a repository in Azure DevOps with Azure Logic App

Vardhan Reddy 80 Reputation points
2023-09-25T17:06:43.92+00:00

Hi,

Im trying to create repository in Azure DevOps with HTTP action in Logic App with following steps, but I'm getting "Redirect" error in that step. Please check & guide someone to resolve this. Instead HTTP i also tested with "Send HTTPS request to DevOps" that time getting below error. Please help.

"TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\r\nAzure DevOps ActivityId: defa4b32-2d1f-4a98-ab6d-a724e20b1a63\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException,

Steps i followed with HTTP action:User's image

User's image

User's image

User's image

Getting below error:

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,135 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,431 Reputation points
    2023-09-26T14:14:11.21+00:00

    @Vardhan Reddy Logic app already have the DevpOs connector which you can leverage to perform different operations. This connector already has the Send an HTTP request to Azure DevOps where you can build the request as per the DevOps REST API document in case if the action is not available.

    If you are getting 401 error, then make sure you have Third-party application access via OAuth option enabled. For more screenshots and details refer to this.

    Just for your reference I have tested the request and created the repository in my project as per the screenshot below.

    Make sure you are building the request and request URI correctly else you may get 401 error if you are hitting the wrong endpoint.

    User's image

    For any assistance on DevOps API you can you to always reach out to DevOps experts below as DevOps is not supported in Microsoft QnA currently.

    https://stackoverflow.com/questions/tagged/devops

    https://developercommunity.visualstudio.com/spaces/21/index.html

    In case if you need any assistance from the logic app end then feel free to get back to me.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.

    0 comments No comments

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.