Connection was denied because Deny Public Network Access is set to Yes.

Chun Hanssen 155 Reputation points
2025-12-18T04:40:33.8733333+00:00

Hi,

Was facing the following issue when connecting to Microsoft Dataflow using SQL server

An exception occurred: DataSource.Error: Microsoft SQL: Reason: An instance-specific error occurred while establishing a connection to SQL Server. Connection was denied because Deny Public Network Access is set to Yes. For more information, see https://go.microsoft.com/fwlink/?linkid=2323206. (Session ID: ss, Region: europe)

Just curious is there a way to allow Power BI (cloud) to be whitelisted/ allowed to access this SQL server? Using SSMS/ Power Desktop locally does not have issue connecting to the SQL server.

Azure SQL Database

Answer accepted by question author

Pilladi Padma Sai Manisha 11,355 Reputation points Microsoft External Staff Moderator
2025-12-26T22:26:25.7033333+00:00

Hi @Chun Hanssen,

it looks like you're running into an issue with connecting to your Azure SQL Database due to the "Deny Public Network Access" setting being activated. When this setting is set to "Yes," it prevents connections from public endpoints, which is why you're seeing that error when trying to access it from Power BI.

Here’s how you can resolve this:

Option 1: Configure a Private Link

  1. Set Up a Private Endpoint: This is the recommended approach for security compliance. You will need to create a private endpoint in your Azure Virtual Network (VNet).
  2. Connect through Private Endpoint: Ensure that your services accessing the SQL Database, including Power BI, utilize this private link to stay within the secure boundary.

Option 2: Allow Public Network Access

If you wish to access the SQL Database from Power BI without configuring a Private Link, you can change the public network access settings:

  1. Access Azure Portal: Go to your SQL Database in the Azure Portal.
  2. Networking Settings: Navigate to the Networking section.
  3. *Change Public Network Access Settings: Switch Public Network Access to **Selected networks.
  4. Add Firewall Rules: Add the necessary IP ranges for Power BI to connect. Make sure to include the relevant Azure service tags if you decide to allow access.

Additional Configuration

  • If you are frequently using Azure services that need to access this server, it might be useful to check the setting "Allow Azure services and resources to access this server." This can assist in allowing access to the SQL Database without needing to individually whitelist IPs.

Summary

To connect Power BI to your Azure SQL Database, either set up a private link for secure communication or adjust the public network settings to allow specific IPs.

Let me know if you have any more questions or need further assistance!

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.