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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Subrat2581
Regular Visitor

Query Regarding Power BI schedule Refresh

Question:

I have created a Power BI dashboard that connects to a MySQL database hosted in Azure. After publishing the dashboard to Power BI Service, I need to ensure the data is refreshed regularly. I am looking for guidance on the following:

  1. Scheduled Refresh Configuration:

    • Do I need to set up a local system(connected 24X7)  with a gateway to facilitate the scheduled refresh, or can Power BI Service directly connect to the Azure-hosted MySQL database without a gateway?
    • What are the specific steps to configure the scheduled refresh in Power BI Service?
  2. Security Considerations:

    • Are there any specific best practices for securely connecting Power BI to an Azure-hosted MySQL database, especially regarding credentials and access control?

Thanks

2 ACCEPTED SOLUTIONS

Hello @Subrat2581 ,

 

if you're accessing a db through vpn , then you're right as you mentioned you'll need a server 24/7 that has internet and a gateway so it would refresh with service.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

Your solution is so great Idrissshatila 

Hi, @Subrat2581 

For Windows systems, you can follow the article below to set up 24x7 operation.

How do I keep my display on 24/7 - Microsoft Community

vjianpengmsft_0-1735003124113.png

If Idrissshatila answers your original question, you can accept it as a solution so that others will know that the question has been answered and help other people in the community. Thank you again for participating!

 

 

Best Regards

Jianpeng Li

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

7 REPLIES 7
Subrat2581
Regular Visitor

So my next question is if I am accessing the DB thorugh VPN, that means to have a scehduled refresh I need a local system which should be connected 24X7 to the network so that it can be  pathway or connection between DB & Power BI service.
The moment the local system is not connected with internet then the refresh fails.
please suggest if any changes in the scenarios are there

Hello @Subrat2581 ,

 

if you're accessing a db through vpn , then you're right as you mentioned you'll need a server 24/7 that has internet and a gateway so it would refresh with service.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks for addressing the concern...my next question is are there any particular system config for the local system which will be running 24X7

Anonymous
Not applicable

Hi, @Subrat2581 

Merry Christmas to you. Previously we have provided a solution to help you solve the problem. Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

 

 

Best Regards

Jianpeng Li

 

Anonymous
Not applicable

Your solution is so great Idrissshatila 

Hi, @Subrat2581 

For Windows systems, you can follow the article below to set up 24x7 operation.

How do I keep my display on 24/7 - Microsoft Community

vjianpengmsft_0-1735003124113.png

If Idrissshatila answers your original question, you can accept it as a solution so that others will know that the question has been answered and help other people in the community. Thank you again for participating!

 

 

Best Regards

Jianpeng Li

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

 

rajendraongole1
Super User
Super User

Hi @Subrat2581 - 

If your Azure-hosted MySQL database is publicly accessible (i.e., has a public IP address and is not restricted to specific on-premises networks), you do not need a gateway. Power BI Service can connect directly to the database over the internet.
If the database is behind a private network (e.g., secured within a virtual network or accessible only from an on-premises environment), a gateway will be required to bridge the connection between Power BI Service and the database.
Steps to Configure Scheduled Refresh
Publish the Report:

After creating and testing your dashboard in Power BI Desktop, publish it to Power BI Service.
Set up a Data Source Connection:

Go to the dataset in Power BI Service.
Navigate to Settings > Dataset > Data source credentials.
Configure the connection to the Azure-hosted MySQL database:
Choose the appropriate authentication method (usually basic with a username and password).
Ensure the connection test passes.
Enable Scheduled Refresh:

In the same Settings > Dataset menu, go to the Scheduled Refresh section.
Enable Keep data updated.
Set the frequency of the refresh (e.g., daily, hourly).
Specify the time zones and refresh windows as needed.
Using a Gateway (if required):
If your database is private, install and configure an On-premises Data Gateway on a machine that has network access to the Azure-hosted MySQL database.
Add the data source in the gateway settings, matching the credentials used in Power BI Desktop.

Ensure that the connection from Power BI Service to the Azure-hosted MySQL database is tested frequently to avoid refresh failures.

Alerting: Configure email notifications in Power BI Service to alert you in case of scheduled refresh failures.

 

Hope the above details give a clarity

 

 





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

Proud to be a Super User!





So that means I need a local system to be connected 24X7 to the internet so that the bridge is maintained between DB & Power BI service for scheduled refresh, if my local system fails to connect with DB then the schedule refresh will also fail.
Please suggest if there are any chnages in my view

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.