Exception to. upload file in blob storage from my .net API hosted in azure app service

Rajiv Ranjan 1 Reputation point
2023-12-08T15:14:47.3033333+00:00

Hi ,

I wrote the function to upload the file on blob storage. It is working fine in local and one azure app service but got exception in another app service.Blob container is public..Error is

Value for one of the query parameters specified in the requirement uri is invalid

Thanks in advance

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. Anand Prakash Yadav 7,870 Reputation points Microsoft External Staff
    2023-12-11T12:11:15.8966667+00:00

    Hello Rajiv Ranjan,

    Thank you for posting your query here!

    The error message "Value for one of the query parameters specified in the requirement uri is invalid" usually occurs when there is an issue with the URL or query parameters. It is possible that the URL or query parameters are not being constructed correctly.

    Also, could you try to add the environment field values in Configuration post deployment.

    After publishing the code to Function app, you can add the environment variable in App settings of Environment Variables Blade.

    For reference: https://stackoverflow.com/questions/77487069/invalidqueryparametervalue-status-400-value-for-one-of-the-query-parameters

    Please note that there are some other errors that you might want to check as well. For example, if the total size of the data exceeds the storage account size limit, the upload will fail. Also, if the destination blob has an active lease, the upload will fail.

    Kindly let us know if you have any further queries. I’m happy to assist you further.


Your answer

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