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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Scheduled Refresh - Azure SQL Database behind VNET

Hi all, we would like to set Scheduled Refresh for our dashboard on PowerBI Pro Service.

 

As far as we know, if the Azure SQL database server is not within a vNet,

it can be done as simple as enable the "Allow access to Azure Services" in the server option and the PowerBI service will be able to connect to it.

 

However, our Azure SQL database server is going to be within a vNet (PowerBI Data Connectivity Mode: Import).

Will the "Allow access to Azure Services" option still work in that case?

If it will not work (we know Direct Query will not work in this case, unless use the gateway with a VM in the vNet),

please advise how can we connect our PowerBI service to the Azure SQL database server.

 

Thank you.

 

2 ACCEPTED SOLUTIONS
GilbertQ
Super User
Super User

Hi @Anonymous 

 

In order for this to work you will need to download and install the Power BI Gateway and configure it to connect to the Power BI Service.

 

The reason for this as far as I understand is that you need the Gateway within your VNET, so it can then communicate with the Power BI Service.


Here are the details on how to achieve this: Set the Azure Relay for on-premises data gateway | Microsoft Docs





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

Anonymous
Not applicable

Hi  @Anonymous ,

1. To configure the plan refresh, you need to configure the gateway and set the credentials of the gateway

You can view the configuration plan refresh here:

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh

 

2. “Allow access to Azure services”,  your server allows communications from all resources inside the Azure boundary.

When set to ON,other resources within the Azure boundary, for example an Azure Virtual Machine, can access SQL DatabaseThere is another one that has the same function as "allow access to azure services" and is more restrictive: IP firewall rules or virtual network firewall rules

This is a related document:

https://docs.microsoft.com/en-us/azure/azure-sql/database/network-access-controls-overview#allow-azure-services

 

3. Related documents of powerbi service connecting to azure SQL database server:

https://www.mssqltips.com/sqlservertip/5953/create-power-bi-connection-to-azure-sql-database/

https://azure.microsoft.com/en-us/blog/securing-the-connection-between-power-bi-and-azure-sql-database/

 

Best Regards

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

1. To configure the plan refresh, you need to configure the gateway and set the credentials of the gateway

You can view the configuration plan refresh here:

https://docs.microsoft.com/en-us/power-bi/connect-data/refresh-scheduled-refresh

 

2. “Allow access to Azure services”,  your server allows communications from all resources inside the Azure boundary.

When set to ON,other resources within the Azure boundary, for example an Azure Virtual Machine, can access SQL DatabaseThere is another one that has the same function as "allow access to azure services" and is more restrictive: IP firewall rules or virtual network firewall rules

This is a related document:

https://docs.microsoft.com/en-us/azure/azure-sql/database/network-access-controls-overview#allow-azure-services

 

3. Related documents of powerbi service connecting to azure SQL database server:

https://www.mssqltips.com/sqlservertip/5953/create-power-bi-connection-to-azure-sql-database/

https://azure.microsoft.com/en-us/blog/securing-the-connection-between-power-bi-and-azure-sql-database/

 

Best Regards

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @Anonymous 

 

In order for this to work you will need to download and install the Power BI Gateway and configure it to connect to the Power BI Service.

 

The reason for this as far as I understand is that you need the Gateway within your VNET, so it can then communicate with the Power BI Service.


Here are the details on how to achieve this: Set the Azure Relay for on-premises data gateway | Microsoft Docs





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors