Write to Blob Storage from Powerapp error

Item Hub Operations 0 Reputation points
2025-03-11T10:37:52.3833333+00:00

Trying to set up Power App that will upload image to Blob Storage on a new Azure Subscription.

Connection is successful but when I add the following to the start of my On Select for the button

Set(AzureBlobIDVar,AzureBlobStorage.CreateFile("primaryimages",AddMediaButton1.FileName,AddMediaButton1.Media).FileLocator);

I get error message

AzureBlobStorage.CreateFile failed: ("status": 400, "message": "Microsoft Entra ID authentication requires the storage account name to be non-empty. This authentication type only supports operations that take the storage account name as a required parameter.\rinclientRequestld: xxxxxx", "error": ("message": "Microsoft Entra ID authentication requires the storage account name to be non-empty. This authentication type only supports operations that take...

Not sure what else I need to do here

Thank in advance

Todd

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,411 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Item Hub Operations 0 Reputation points
    2025-03-12T05:31:49.74+00:00

    Thanks for your response. By converting the function to CreateFilev2 there was no red squiggly lines.

    Now getting Error Message

    AzureBlobStorage.CreateFileV2 failed: ("status": 403, "message": "AuthorizationPermissionMismatch\r\nclientRequestld: xxxx", "error": ( "message": "AuthorizationPermissionMismatch" ), "source": "azureblob-ae.azconn-ae-001.p.azurewebsites.net" )
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.