Hi @Shelly Goel ,
Welcome to Microsoft Q&A! Thanks for posting the question.
I understand that you are trying to move a large content (file) from S3 pre-signed URL to Azure Blob in Logic Apps. Based on the error being received, please note that to download chunked messages from an endpoint over HTTP, the endpoint must support partial content requests, or chunked downloads. Please refer to Download content in chunks
You may use custom code with Logic Apps using one of the methods below to achieve it:
1. Run code snippets by using inline code in Azure Logic Apps
2. Trigger an Azure Function from Logic Apps
The sample snippet below in .NET, based on this article can be included in the Function App which can perform the required operation (This is one of the ways to do it):
string LargeFileURL = "<Spurce URL>;
string storageConnString = "<Storage Connection string to Azure Storage Account>"
string storageContainerName = "<destination container>"
string blobName = "<new blob name in Azure storage container>"
//BlobClient for saving/uploading content to Azure storage container as blob
BlobClient blobClient = new BlobClient(storageConnString, storageContainerName, blobName);
//HttpClient for getting content from source
var httpClient = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, LargeFileURL);
HttpResponseMessage response = await httpClient.GetAsync(sasLargeFile, HttpCompletionOption.ResponseHeadersRead);
using (var stream = await response.Content.ReadAsStreamAsync())
{
await blobClient.UploadAsync(stream);
}
Please let me know if you have any questions.
---
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.