This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Currently I am working on a way to automate deployment of Power BI pbix files. An important part of the solution is to set credentials on the data sources. The organization has a Power BI environment with approx. 40.000 connection. The vast majority being Excel and cvs files and 2500 of these connections are SQL Server connections. Company polices require to connect to SQL server (on-prem + cloud) only with AD / AAD credentials (so no Basic authentication, and preferably an SPN) and we are also pushed by security architects to set up automated password rotation.
About 6 month ago, I got to the point I could create with an C# azure function an oAuth2 token, but the validation was only 45-60 minutes. This would result in somewhat unpractical solution to update 2500 connections every 45-60 minutes, so we did not take this approach any further.
My question is of any one already had any succeeded in setting up connections with AD/AAD credentials in way that is practical to use on a large scale with multiple enterprise development teams creating Power BI projects. I already had a look at "https://powerbidevcamp.powerappsportals.com/sessions/session33/", but that stil leaves me with the 60 min limit on tokens
Hi @lexsmeets_ ,
The token access lifetime is 1 hour and cannot be extended. There is no way to automatically refresh the token or extend the token lifetime. One workaround is to use Databricks Personal Access Token.
Connect Power BI to Azure Databricks - Azure Databricks | Microsoft Learn
Another option is to use incremental refresh feature in Power BI.
Configure incremental refresh and real-time data for Power BI datasets - Power BI | Microsoft Learn
Best Regards
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |