web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to store data in a...
Power Pages
Suggested Answer

How to store data in and retrieve data from Azure Blob Storage using Power Pages

(0) ShareShare
ReportReport
Posted on by 73
Hi All
 
We have a requirement to store large amounts of unstructured data (documents). This data (documents) will be uploaded from a Power Pages page. There will also be a page to list this data (document names) based on certain criteria.
 
Azure Blob Storage looks like a good option. Has anyone taken this approach.
 
Reading various documents there is a class called BlobServiceClient which is in the Azure Storage Blob client library. However in the examples I've read they say that a library needs to be installed using npm. I'm not clear where this would installed for Power Pages.
 
Could this library be accessed using CDN, the src for it is "https://cdnjs.cloudflare.com/ajax/libs/azure-storage-blob/12.26.0/index.js". I've included this in a test page but when trying to create an instance of BlobServiceClient I get the error message
"ReferenceError: BlobServiceClient is not defined".
 
Has anyone tried/had success working with Azure Blob Storage from Power Pages.
 
Thanks in anticipation
Categories:
I have the same question (0)
  • Suggested answer
    Robu1 Profile Picture
    1,459 Super User 2025 Season 2 on at
     
    Thank you for choosing Microsoft Power Platform Community.
     
    You're on the right track with Azure Blob Storage for handling large amounts of unstructured data.
     
    Integrating Azure Blob Storage with Power Pages can indeed be a powerful solution.
     
    Here are some steps and tips to help you get started:
     
    Enable Azure Blob Storage in Power Pages:
    You can enable Azure Blob Storage for basic or multistep forms with attachments, web files, and timeline control.
     
    Create a storage account in Azure and add role-based permissions to the app in Azure.
     
    Using BlobServiceClient:
    The BlobServiceClient class is part of the Azure Storage Blob client library, which allows you to manipulate Azure Storage service resources and blob containers.
    To use the BlobServiceClient in a Power Pages page, you need to include the library via a CDN. However, it seems like you encountered an issue with the CDN approach.
     
    Troubleshooting the CDN Approach:
    Ensure that the CDN link is correctly included in your Power Pages page.
    Verify that the BlobServiceClient class is properly referenced in your script. You might need to wait for the script to load before using the class.
     
    Alternative Approach:
    If the CDN approach doesn't work, you might consider using the Web API to upload files to Azure Blob Storage. This involves creating site settings, configuring permissions, and using the API to manage file uploads.
     
    Additional Resources:
    You can find detailed steps on how to integrate Azure Blob Storage with Power Pages here.
     
    For more information on using the BlobServiceClient class, refer to the the documentation below:
     
     
    To resolve reference error: 

    -Ensure that you are using the correct version of the Azure Storage Blob client library. The BlobServiceClient class is available in version 12 and above.
     
    -Make sure that the script is fully loaded before you try to create an instance of BlobServiceClient.
    You can use the onload event to ensure the script is loaded:
     
    -Ensure that the CDN link is correctly included in your Power Pages page.

     
    If this Post helped you, please click  "Does this answer your question" and like this post to help others in the community find the answer too!
     
    Happy to help
     
    Robu 1
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 89 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 75

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard