question

PrasennaKannan-0682 avatar image
0 Votes"
PrasennaKannan-0682 asked PrasennaKannan-0682 commented

Upload file using to Storage directly through APIM

Team,

I'm looking for a solution where I could upload a file directly to Azure Storage through APIM.

Kindly provide best practices and solutions.

Thanks,

azure-blob-storageazure-api-management
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PrasennaKannan-0682 May I know what exactly are you trying to accomplish? Can you please elaborate bit more on your query? Where do you want to upload files in Azure Storage(Blob, Files)?

Upload file using to Storage directly through APIM? May I know what exactly are you referring?

This article provides an overview of some of the common Azure data transfer solutions. The article also links out to recommended options depending on the network bandwidth in your environment and the size of the data you intend to transfer.https://docs.microsoft.com/en-us/azure/storage/common/storage-choose-data-transfer-solution

0 Votes 0 ·
PrasennaKannan-0682 avatar image PrasennaKannan-0682 SumanthMarigowda-MSFT ·

@Sumarigo-MSFT

I have Azure Blob Storage and a container. I have to upload a file to the container.

What I have tried :

1) Generate BLOB SAS URL and append the container name and the filename before ?sv as below.

https://xxxxxxxxxxxyyyyyyy.blob.core.windows.net/apimtest/bigfile140.zip?sv=2020-08-04&ss=bfqt&srt=sco&sp=rwdlacupitfx&se=2022-05-20T06:38:41Z&st=2022-05-19T22:38:41Z&spr=https&sig=Cfpp7VAok%2FatmLEnpdMsOz8j5qxjUPdXU4lx%2Ffr5AJI%3D

2) Configure the above URL in Azure Backend URL in the APIM for a PUT operation.

3) Call the PUT operation method from PostMan.

This works fine. However, I would like to know an elegant solution to accomplish this.

My requirement : Uploading a file (max size would be 300MB) to Azure Blob Storage via APIM and not directly exposing the Storage URL to the client.

0 Votes 0 ·

0 Answers