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 Apps / Download File from Azu...
Power Apps
Unanswered

Download File from Azure Blob Storage

(0) ShareShare
ReportReport
Posted on by 9

Hi,

I'm building a custom page embedded on a model driven where you can upload a file to azure blob storage using the stard connector with the authentication type:"azure Ad integrated". the issue I'm facing is when I try to launch CreateShareLinkByPathV2 it says: 

"error": "'Operation not supported with AAD authentication, use Azure Storage Account name/key connection instead.' "

 

Launch(
 AzureBlobStorage.CreateShareLinkByPathV2(
 "storage",
 "container/file/"
 ).WebUrl
)

I checked the documentation but I couldn't find anything about this error. I can't change the type of authentication of the connector. There is any other solution?? there are any other function I can use for download the file??

 

thanks in advance

Categories:
I have the same question (0)
  • NativeNass_ Profile Picture
    223 on at

    HI @Lorenzo6 

     

    Been having to work on a project as well with the Blob connector and you can only use these specific steps when you have access/key authentication.

     

    NativeNass__0-1701844201712.png

     

    If you cannot change the connection in your PowerApp it might be an idea to launch a flow that creates the SAS URI and return it to your app?

    However, you will also need to configure the connection in your flow with access/key as well.

     

    Since your post has been a while, found any way around this? I'm also trying to return the file content from flow to canvas apps so that I don't have to create this SAS URL.

     

    Kr

  • Lorenzo6 Profile Picture
    9 on at

    Hi @NativeNass_ ,

    Apologies for the delayed response, but I wanted to share some insights that might prove helpful, especially for others encountering similar challenges.

    After extensive testing and implementation, we successfully resolved the issue with the application we discussed earlier. The solution involved granting users specific privileges to contribute to the Blob storage (we have done it from Azure and If I remember correctly it was a role)

    To streamline the file upload process, here's the code snippet you'll need. Ensure to include the necessary parameters such as the Azure account, container, and of course, the file itself. (Note: I've utilized components to enable users to attach files seamlessly.)

     // Create a file in Azure Blob Storage
     AzureBlobStorage.CreateFileV2(
     varBlobStorage.Account,
     varBlobStorage.Container & "/Import",
     First(FileAttachment_2.Attachments.FileAttachment).Name,
     First(FileAttachment_2.Attachments.FileAttachment).Value
     );

     The documentation of MS it is a bit old(this one https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/connections/connection-azure-blob-storage) most of the actions have been deprecated and substitute with a new version.
    The only point where I could find the new actions it is in the documentation for Power Automate, but the actions are the same for powerapp sometime they have the name a bit different (https://learn.microsoft.com/en-us/connectors/azureblob/).

    I hope it can help

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard