Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

(0) ShareShare
ReportReport
Posted on by 14

I've been trying to setup a connection to an Azure SQL Server,

due to company policies, we are not allowed to open the firewall directly, so, we are going to use a On Prem data gateway to route traffic through. We already have the gateway, and we use it for PowerBI normally.

 

When setting up the connection in Power Automate, I don't get the option to select the gateway through AD connection, only if I select Windows Auth or SQL Server Auth.

 

How should I complete this connection?

 

Thank you,

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

    To the best of my knowledge there is no way to use an on-premises gateway to connect to an Azure SQL database in the cloud using AAD.  

  • andreanidouglas Profile Picture
    14 on at
    Re: Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

    Azure SQL

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

    Azure SQL database or Azure VM running SQL?  I'm not sure you can connect to an Azure SQL database through an on-premises gateway.  I know you can connect to an Azure VM running SQL.  But that would act like an On-Premises server and use a local AD or Azure AD services so it would be windows Auth.

  • andreanidouglas Profile Picture
    14 on at
    Re: Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

    It is a prem-gateway, but to an Azure SQL, which does not have Windows authentication

     
  • andreanidouglas Profile Picture
    14 on at
    Re: Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

    It is a prem-gateway, but to an Azure SQL, which does not have Windows authentication

  • Pstork1 Profile Picture
    67,060 Most Valuable Professional on at
    Re: Connecting to Azure SQL Server through On Prem Gateway using AD Authentication

    If you are going through an on-premises gateway then the server you are connecting to is on-premises as well.  AAD authentication would be for Azure AD, which is only available in the cloud.  What you want is Windows Auth which will use the on-premises AD credentials.  That's why you don't see the gateway for Azure AD authentication.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics