Forum Discussion
Unable to Display Azure Blob Storage Images in HTML Content Lite Visual in Power BI
I’m working on a Power BI report that needs to display images stored in Azure Blob Storage inside the HTML Content Lite visual. The images are in a private blob container. I am able to view the images on the grid visual but not on the HTML Content Lite visual. What is the best way to display them on the HTML Content Lite visual?
1. Ensure the Images Are Accessible via a URL
The HTML Content Lite visual requires publicly accessible URLs for images. Since your blob container is private, you'll need to generate Shared Access Signature (SAS) URLs or use a proxy service.
2. Generate SAS URLs for Each Image
Since the container is private, direct access won’t work. Use a SAS token to generate temporary URLs for the images.
Steps to Generate SAS URLs:
- Go to Azure Portal → Storage Account → Blob Containers.
- Select the private container where the images are stored.
- Click on a blob (image) and generate a SAS token and URL.
- Use the SAS URL in Power BI.
💡 Tip: If you need to display multiple images dynamically, store the SAS token in your dataset and concatenate it with the blob URL.
3. Store SAS URLs in Your Dataset
Modify your dataset to include the full SAS URL for each image. If the blob name is stored in a column (ImageName), create a calculated column in Power Query or DAX:
Power Query (M) Example:
MCopyEdit= Table.AddColumn(Source, "ImageURL", each "https://yourstorageaccount.blob.core.windows.net/yourcontainer/" & [ImageName] & "?sv=yourSASsignature")DAX Example:
DAXCopyEditImageURL = "https://yourstorageaccount.blob.core.windows.net/yourcontainer/" & Table[ImageName] & "?sv=yourSASsignature"4. Display Images in HTML Content Lite Visual
Once your dataset has valid SAS URLs, use the following HTML inside the HTML Content Lite visual:
htmlCopyEdit<img src="{ImageURL}" style="width:100%; height:auto;">💡 Ensure the column is categorized as "Image URL" in Power BI.
4 Replies
- andrewsommer
Super User
1. Ensure the Images Are Accessible via a URL
The HTML Content Lite visual requires publicly accessible URLs for images. Since your blob container is private, you'll need to generate Shared Access Signature (SAS) URLs or use a proxy service.
2. Generate SAS URLs for Each Image
Since the container is private, direct access won’t work. Use a SAS token to generate temporary URLs for the images.
Steps to Generate SAS URLs:
- Go to Azure Portal → Storage Account → Blob Containers.
- Select the private container where the images are stored.
- Click on a blob (image) and generate a SAS token and URL.
- Use the SAS URL in Power BI.
💡 Tip: If you need to display multiple images dynamically, store the SAS token in your dataset and concatenate it with the blob URL.
3. Store SAS URLs in Your Dataset
Modify your dataset to include the full SAS URL for each image. If the blob name is stored in a column (ImageName), create a calculated column in Power Query or DAX:
Power Query (M) Example:
MCopyEdit= Table.AddColumn(Source, "ImageURL", each "https://yourstorageaccount.blob.core.windows.net/yourcontainer/" & [ImageName] & "?sv=yourSASsignature")DAX Example:
DAXCopyEditImageURL = "https://yourstorageaccount.blob.core.windows.net/yourcontainer/" & Table[ImageName] & "?sv=yourSASsignature"4. Display Images in HTML Content Lite Visual
Once your dataset has valid SAS URLs, use the following HTML inside the HTML Content Lite visual:
htmlCopyEdit<img src="{ImageURL}" style="width:100%; height:auto;">💡 Ensure the column is categorized as "Image URL" in Power BI.
- AnonymousNot applicable
Hi sumanchintala19 ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Thank you. - AnonymousNot applicable
Hi sumanchintala19 ,
I just wanted to kindly follow up to see if you had a chance to review the previous response provided by community members. I hope it was helpful. If yes, please Accept the answer so that it will be helpful to others to find it quickly.
Thank you. - AnonymousNot applicable
Hi sumanchintala19 ,
We haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.
If you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!