Skip to main content

Notifications

Community site session details

Community site session details

Session Id : URlnDn3+0Di92CBE51eEKQ
Power Automate - Using Connectors
Unanswered

Issue with SQL Managed Instance connection and service principal

Like (1) ShareShare
ReportReport
Posted on 2 Jul 2024 21:25:52 by 4

Hi,

 

I am developing a new flow that needs to perform a query in one of our cloud SQL Managed Instances. The SQL MI has been configured to use Service Principal authentication type and currently we are being able to connect to it from SSMS using service principal.

 

When I define the connector, Power Automate says the connection is alive, but when trying to use that connection from a flow, we are getting a few error messages like these:

  • 'Failed to retrieve dynamic outputs. As a result, this operation's outputs might not be visible in subsequent actions. Error details: The gateway did not receive a response within the specified time period. Cannot fulfill the request to the remote server.'
  • 'The gateway did not receive a response within the specified time period. Cannot fulfill the request to the remote server.'

 

Some screenshots are attached showing this problem. Hopefully someone gets to help me as there has been a couple of days since I can't find a solution.

 

Ulises.

Categories:
  • Michael E. Gernaey Profile Picture
    35,704 Super User 2025 Season 1 on 04 Jul 2024 at 19:06:47
    Re: Issue with SQL Managed Instance connection and service principal

    Hi @UlisesPedrozo 

     

    Yeah I noticed you said its a Cloud instance, but the error is clearly thinking you have a Gateway, do you use a Gateway for other stuff? Any chance its accidentally being used?


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • UlisesPedrozo Profile Picture
    4 on 04 Jul 2024 at 18:11:27
    Re: Issue with SQL Managed Instance connection and service principal

    Sorry for the misunderstanding, it is not an on-prem SQL Managed Instance, so there is no possibility to use any Gateways.

     

    Hope this information helps.

     

    Thank you,

    Ulises.

  • Michael E. Gernaey Profile Picture
    35,704 Super User 2025 Season 1 on 04 Jul 2024 at 03:52:12
    Re: Issue with SQL Managed Instance connection and service principal

    Hi @UlisesPedrozo 

     

    Are you using the Microsoft Data Gateway, since its onprem?

     

    Do you have the Gateway configured to run/use as a Service Principal so that when it makes the calls etc it works?

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,338 Most Valuable Professional

Leaderboard

Featured topics

Loading started
Loading complete