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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard