Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
kriskmk
New Member

Power BI Service connection to SQL Server on AWS EC2 instance not connecting. Have gateway installed

I am trying to connect Power BI Service to connect to SQL Server that is installed on AWS EC2. Installed On-Prem Gateway and configured, which is in online state. Followed Power BI Service connection to SQL Server on AWS E... - Microsoft Fabric Community

 

 Keep getting "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)". 

 

The above error is from the Gateway error logs (On-Prem Gateway installed on the AWS EC2). Need help.

1 REPLY 1
kriskmk
New Member

After I posted this message, I realized one thing. 

I got this idea, where I figured that the Gateway and SQL Server on the same EC2 instance, Gateway is not able to reach SQL Server. All I had to do was to set the IP (private, just to be safe also gave public IP) in the Security Group of the EC2 instance, only gave access to MSSQL (port 1433). Power BI service connected to the SQL Server. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors