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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
RyanHare92
Helper I
Helper I

Azure Blob connection issue

I previously made a post about this and I thought I had resolved the issue... Turns out I haven't.

This is driving me mad and I am desperate for a solution.

I have set up a connection to a container in Azure using the following:

RyanHare92_1-1697799734030.png

I successfully managed to connect using the SAS key for the container that I have and I can view all the contents. I do not have access to the main domain.

 

When I look in the data source setting, the main domain is appearing even though when I press on change source, it actually shows the URL for the container I am conecting to: 

 

RyanHare92_0-1697799719848.png

 

My problem is that when I publish the report and try to put in the credentials for the container, it won't accept it, as it appearently wants the credentials for the main domain:

RyanHare92_2-1697799922979.png

 

I feel like I have tried everything but I can't find a solution to this! 

1 REPLY 1
freginier
Solution Sage
Solution Sage

This is the classic "container SAS vs account-level auth" mismatch. AzureStorage.Blobs() authenticates at the storage account level (the root ...blob.core.windows.net domain), not at the individual container. That's why the main domain shows up in Data source settings even though your M query points at the container, and why the published credential prompt asks for the account: your SAS is scoped to the container only, so it can't satisfy the account-level credential and you get "credentials are invalid".

 

A few ways out:

 

1) Put the SAS in the URL and read it as Anonymous, so there is no account-level credential to satisfy. Instead of AzureStorage.Blobs, append the SAS token as a query string and use Web.Contents, e.g. Web.Contents("https://asrcareports.blob.core.windows.net/esmcr939?<sas-token>"), then set the credential for that URL to Anonymous. (You lose the nice navigator, but it authenticates against the container only.)

 

2) Fix the credential entry. In File > Options and settings > Data source settings, select the https://asrcareports.blob.core.windows.net entry, Clear permissions, then reconnect and choose the SAS / account key option. With only a container-scoped SAS, option 1 is the more reliable route.

 

3) Easiest if you can get it: ask for an account-scoped SAS, the storage account key, or Azure AD RBAC ("Storage Blob Data Reader") on the account. Any of those satisfy the account-level auth and the container just works, including on the Service after publishing.

 

In short, the root-domain prompt isn't a bug, it's Power BI authenticating at the account level. Either give it an account-level credential, or bypass the binding by carrying the container SAS in the URL with Web.Contents.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors