logic app http connector download zip file

Amit Kumar Srivastava 1 Reputation point
2020-07-31T08:56:47.247+00:00

Dear All,

I have to download Azure DevOps release logs and store them in a blob storage.

URL of release logs looks like as shown below:

https://vsrm.dev.azure.com/XXXXX/XXXXXXXXXXXXX/_apis/Release/releases/9481/logs

I have created a logic app and trying to get the zip file downloaded from above mentioned URL.

in blob content step, I am putting value as @Tomas Podoba ('http') which should be zip response of the previous http request . but It's getting only 2 line content and not actual zip file.I am able to see that in http connector response is coming as

"Content-Disposition": "attachment; filename=ReleaseLogs_9481.zip; filename*=utf-8''ReleaseLogs_9481.zip",
"Content-Type": "application/zip; api-version=6.0-preview.2",

Can any one help in this regards.

I have to download this zip content and store them in blob storage

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,873 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 68,751 Reputation points
    2020-07-31T11:41:40.41+00:00

    Hi @Amit Kumar Srivastava

    Can you confirm if you are passing the file URL correctly in the HTTP action as I can see you have mentioned the URL as "https://vsrm.dev.azure.com/XXXXX/XXXXXXXXXXXXX/_apis/Release/releases/9481/logs" and I don't see it is the correct path for the zip file. It should be something like https://vsrm.dev.azure.com/XXXXX/XXXXXXXXXXXXX/_apis/Release/releases/9481/logs/ReleaseLogs_9481.zip

    If you are passing without the filename then it will download the HTTP response from the requested URL.

    I have created the HTTP action and pass the zipped file (not of devoOps release logs) and don't face any issue.

    14865-image.png

    If your file is more than 100 MB then you might want to download the content in chunks: https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-handle-large-messages#download-content-in-chunks