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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Brighton10
Helper II
Helper II

Need help to connect to a azure blob storage using a sas token

Hi 

 

I am trying to get someone to only access a specific folder/files in my blob storage. So I have generated a Blob SAS token and Blob SAS Url. Since the url contains the Account name i can either put that or the url however the url gives a an error blob connector error.PNG

However when I only insert the blob storage endpoint it goes to the next stage as shown below.

anonymous.PNG

 

From my understanding if someone has an account key they will have access to all the contents of that account. If I use anonymous then this error occurs. 

error2.PNG

 

So is there a way to connect to the blob storage using sas token? Thanks for your assistance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Brighton10 ,

 

It seems that PBI does not officially support SAS token method of authentication.

 

Here are step-by-step processes talking about connecting to data housed in Azure Blob Storage from Power BI using a SAS token. You may kindly take a look at them:

Connecting to Blob Storage with a Shared Access Signature in Power BI | Microsoft Docs

Connecting to Azure Blobs in Power BI/

 

  1. Launch Power BI and select "Get Data -> Web"
  2. Switch to the "Advanced" view, and input the base URL in the first box, your copied query string in the second box.
  3. Click "Add part" and enter "&restype=container&comp=list" in the third box (this is the directive that tells the rest endpoint to return a an enumeration of the blobs in the container.
  4. Click "Ok", you will eventually be presented with a screen that shows a one row table being returned.  This is because the payload that comes back from the REST api is XML.  Click "Load"

              ......

In addition, an idea similar with your requirement has been raised, please upvote this feature request here:

Connect to Azure Tables via Shared Access Signatures

 

 

Best Regards,
Eyelyn Qin
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
NirupamNishant
New Member

As of 2023-August, for Blob Storage, we can use SAS connection.

 

You can get the Account Name and SAS token from the complete SAS URL. Note that the SAS token (secret) is the portion AFTER the question mark (?) in your SAS URL.

 

https://<AccountName>.blob.core.windows.net/?<SASToken>

 

Select the "Azure Blob Storage" connector.

NirupamNishant_0-1691486280078.png

Enter account name for your storage account.

NirupamNishant_1-1691486345966.png

Select SAS authentication and enter ONLY the SAS token (the portion after ? in your complete SAS URL)

NirupamNishant_2-1691486396485.png

 

The navigator should pop up and you can browse 🙂

NirupamNishant_4-1691486660849.png

 

NirupamNishant_3-1691486438837.png

NOTE: SAS generally are provisioned with an expiry date (can be seen in the SAS token). You will need to reenter the new SAS Token details once older one expired. You can edit the current connection from "Data source settings".

NirupamNishant_5-1691486778666.png

 

 

Anonymous
Not applicable

Hi @Brighton10 ,

 

It seems that PBI does not officially support SAS token method of authentication.

 

Here are step-by-step processes talking about connecting to data housed in Azure Blob Storage from Power BI using a SAS token. You may kindly take a look at them:

Connecting to Blob Storage with a Shared Access Signature in Power BI | Microsoft Docs

Connecting to Azure Blobs in Power BI/

 

  1. Launch Power BI and select "Get Data -> Web"
  2. Switch to the "Advanced" view, and input the base URL in the first box, your copied query string in the second box.
  3. Click "Add part" and enter "&restype=container&comp=list" in the third box (this is the directive that tells the rest endpoint to return a an enumeration of the blobs in the container.
  4. Click "Ok", you will eventually be presented with a screen that shows a one row table being returned.  This is because the payload that comes back from the REST api is XML.  Click "Load"

              ......

In addition, an idea similar with your requirement has been raised, please upvote this feature request here:

Connect to Azure Tables via Shared Access Signatures

 

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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