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