web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Connecting Power Autom...
Power Automate
Unanswered

Connecting Power Automate to an On-Prem DevOps Server?

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I am trying to set up a flow that would take a form submission and create a new work item in a DevOps boards. The issue I am running into is that our OnDev instance is hosted on-premises, running on a server. We don't use the cloud version of DevOps currently. 

 

I installed the On-prem Gateway on the server hosting our DevOps instance. Went through the steps to configure that, just the steps for basic installation and made sure the HTTPS option was selected. It's connected using my company O365 account, and the service account is one we use for other services. 

 

I am not sure what steps to take after this. I am trying to call the Devops instance in PowerAutomate, but cannot get it to connect to the On-Prem instance. For the organization name, I have tried putting the direct URL to the board, the URL to the DevOp site, the name of the board itself, the company name the board is assigned to, and I am usually met with a 400 error:

 

"Could not retrieve values. The dynamic invocation request failed with error: {
"status": 400,
"message": "Invalid relative URI provided: '_apis/projects?api-version=1.0'.\r\nclientRequestId: 5a57a7b8-f2a6-4cdf-9d95-80c8-d945effa",
"error": {
"message": "Invalid relative URI provided: '_apis/projects?api-version=1.0'."
},
"source": "vsts-eus2.azconn-eus2-01.p.azurewebsites.net"
}.

 

 

The only different response I get is when I use DefaultCollection as the organization name, which gives me the following error:

Could not retrieve values. The dynamic invocation request failed with error: {
"status": 401,
"message": "TF400813: The user '5dfa5a60-f4dc-41ed-9bfb-ea729d539df5\\jsands@.com' is not authorized to access this resource.\r\nAzure DevOps ActivityId: 7017eecf-93e7-41c2-88a0-b73e1f184206\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user '5dfa5a60-f4dc-41ed-9bfb-ea729d539df5\\\\jsands@.com' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\"typeKey\":\"UnauthorizedRequestException\",\"errorCode\":0,\"eventId\":3000}\r\nclientRequestId: 88a177af-da13-4ec9-99f7-cecb-18d8260e",
"error": {
"message": "TF400813: The user '5dfa5a60-f4dc-41ed-9bfb-ea729d539df5\\jsands@.com' is not authorized to access this resource.\r\nAzure DevOps ActivityId: 7017eecf-93e7-41c2-88a0-b73e1f184206\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user '5dfa5a60-f4dc-41ed-9bfb-ea729d539df5\\\\jsands@.com' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\",\"typeKey\":\"UnauthorizedRequestException\",\"errorCode\":0,\"eventId\":3000}"
},
"source": "vsts-eus2.azconn-eus2-01.p.azurewebsites.net"
}.

 

I am sure I am just missing a step somewhere, but I can't figure out what I am missing. Any help would be appreciated! Thank you! 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have the same issue, someone fixed this?

  • Christian Profile Picture
    18 on at

    For me the solution was to enable "Third-party application access via OAuth".

    Go to Org settings:

    https://dev.azure.com/[OrgName]/_settings/organizationPolicy

    Switch on "Third-party application access via OAuth"

  • jf21 Profile Picture
    2 on at

    For me, using the URL for my analytics page worked.

    For example, in the "Organisation Name" use the following URL:

    "https://azdev.mydomain.com/myorganisation/_settings/analytics"

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard