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

sql

(0) ShareShare
ReportReport
Posted on by

I cannot connect my flow to SQL Azure due to Firewall rules. I get the following error:

"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) inner exception: Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"

Please advise on how to add flows to whitelists on SQL Azure.

Categories:
I have the same question (0)
  • TomCastiglia Profile Picture
    33 on at

    From the error message you included, I'm not sure that is a firewall error in SQL Azure.  When the firewall is blocking the client IP address, the error message reported by SQL Management Studio is a bit different and specifies the current IP address in the message body.  At lease that has been my experience.  However, assuming that your problem is a SQ Azure firewall issue, here is my advice...

     

    SQL Azure does require the firewall settings to be updated to grant access directly to each client AP address that is used to connect. This is done in the Azure managament portal, as follows:

    1. Open Azure Management Portal from the same machine that is running SQL Management Studio
    2. Select the name of your Azure SQL Database name
    3. From the database screen, click the value under the "Server name", which will display the server settings screen.  
    4. From the "Server Settings" screen, click on "Show Firewall Settings"
    5. The Firewall Setting screen will display the current IP address and include a button called "Add Client IP", simply click this button to add the current IP address to the fiewall settings.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    The idea is right. But where do you get the IP from MS Flow from 🙂

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
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard