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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nandu2520
Helper I
Helper I

Get SAS token dynamically in Power BI

Hi,

 

I have azure blob storage with blob files. Blob storage is configured with private end point.

In Power BI when downloading the files I am using SAS token along with blob url. Currently I am hardcoding the SAS token value as parameter in Power BI.

 

What are the possible options to get the SAS token dynamically from Azure blob storage in Power BI.

Please suggest. Thanks

3 REPLIES 3
MSPBI_Starter
Frequent Visitor

Was anyone able to find out "how can one generate SAS token for Data Lake Gen 2 account on the fly" ?

NandanHegde
Super User
Super User

Based on my understanding, it is not possible to get the SAS Tokens dynamically within PowerBI as PowerBI doesnt have support to key vault yet.

You would have to wirte some custom logic via Python or Powershell to get the SAS Token at run time (you can leverage Power automate as well if need be)




----------------------------------------------------------------------------------------------
Nandan Hegde (MSFT Data MVP)
LinkedIn Profile : www.linkedin.com/in/nandan-hegde-4a195a66
GitHUB Profile : https://github.com/NandanHegde15
Twitter Profile : @nandan_hegde15
MSFT MVP Profile : https://mvp.microsoft.com/en-US/MVP/profile/8977819f-95fb-ed11-8f6d-000d3a560942
Topmate : https://topmate.io/nandan_hegde
Blog :https://datasharkx.wordpress.com

Can we invoke this Python/Power shell script directly from Power BI?

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.