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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
maredo
Frequent Visitor

Auto-refresh for Power BI Custom Connector with Open API (Basic Auth)

Hi everyone,

I have built a custom connector for Power BI that connects to an Open API with Basic Authentication. The API is hosted on Azure App Service, and the connector works correctly when used in Power BI Desktop.

Now, I need to set up automatic refresh for Power BI reports that use this connector. I am unsure whether a Data Gateway is required in this case. Specifically, I have the following questions:

  1. Is a Data Gateway necessary for enabling auto-refresh when using a custom connector with an API hosted on Azure App Service?
  2. If a gateway is required, what is the best Azure resource to install it on?
  3. Can the Data Gateway be installed on the same Azure App Service where the API is hosted, or does it need a separate virtual machine or another specific setup?

Any guidance on best practices or recommendations would be greatly appreciated!

Thanks in advance for your help.

2 ACCEPTED SOLUTIONS
Akash_Varuna
Super User
Super User

Hi @maredo To enable auto-refresh for Power BI a gaetway is needed for the questuions :

  1. Gateway Requirement: A Data Gateway is necessary for auto-refresh with external APIs.
  2. Best Resource: Install the gateway on an Azure Virtual Machine (VM), not the Azure App Service.
  3. Setup: Use a Windows-based VM in the same region as the App Service for optimal performance. Configure the gateway in standard mode for Power BI integration.
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

View solution in original post

Hi @maredo  A single gateway instance on a VM is typically sufficient for handling multiple users and different credentials But if users spike then consider clustering multiple gateways on different VM
For the VM please check this discussion in reddit : https://www.reddit.com/r/AZURE/comments/n65hdu/d2s_v3_vs_d2s_v4_temporary_storage_vs_not/?rdt=35717

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @maredo,

 

Thanks @Akash_Varuna for Addressing the issue.

 

we would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.
If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,
Vinay Pabbu

Akash_Varuna
Super User
Super User

Hi @maredo To enable auto-refresh for Power BI a gaetway is needed for the questuions :

  1. Gateway Requirement: A Data Gateway is necessary for auto-refresh with external APIs.
  2. Best Resource: Install the gateway on an Azure Virtual Machine (VM), not the Azure App Service.
  3. Setup: Use a Windows-based VM in the same region as the App Service for optimal performance. Configure the gateway in standard mode for Power BI integration.
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

Thank you @Akash_Varuna 

I have a few more questions to ensure the best setup:

  1. What VM instance type would be a good trade-off between cost and performance for running the Data Gateway efficiently?
  2. Since the gateway will serve multiple users with different credentials, would a single gateway instance on a VM be sufficient, or should I consider deploying multiple gateways across different VM instances?

Hi @maredo  A single gateway instance on a VM is typically sufficient for handling multiple users and different credentials But if users spike then consider clustering multiple gateways on different VM
For the VM please check this discussion in reddit : https://www.reddit.com/r/AZURE/comments/n65hdu/d2s_v3_vs_d2s_v4_temporary_storage_vs_not/?rdt=35717

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors