Forum Discussion

sumanchintala19's avatar
sumanchintala19
Frequent Visitor
1 year ago
Solved

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:

    1. Go to Azure Portal → Storage Account → Blob Containers.
    2. Select the private container where the images are stored.
    3. Click on a blob (image) and generate a SAS token and URL.
    4. 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:

       

      M
      CopyEdit
      = Table.AddColumn(Source, "ImageURL", each "https://yourstorageaccount.blob.core.windows.net/yourcontainer/" & [ImageName] & "?sv=yourSASsignature")

       

       

      DAX Example:

       

      DAX
      CopyEdit
      ImageURL = "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:

       

      html
      CopyEdit
      <img src="{ImageURL}" style="width:100%; height:auto;">
       

      💡 Ensure the column is categorized as "Image URL" in Power BI.

4 Replies

  • 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:

    1. Go to Azure Portal → Storage Account → Blob Containers.
    2. Select the private container where the images are stored.
    3. Click on a blob (image) and generate a SAS token and URL.
    4. 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:

       

      M
      CopyEdit
      = Table.AddColumn(Source, "ImageURL", each "https://yourstorageaccount.blob.core.windows.net/yourcontainer/" & [ImageName] & "?sv=yourSASsignature")

       

       

      DAX Example:

       

      DAX
      CopyEdit
      ImageURL = "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:

       

      html
      CopyEdit
      <img src="{ImageURL}" style="width:100%; height:auto;">
       

      💡 Ensure the column is categorized as "Image URL" in Power BI.

  • Anonymous's avatar
    Anonymous
    Not 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.

  • Anonymous's avatar
    Anonymous
    Not 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.

  • Anonymous's avatar
    Anonymous
    Not 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!