Max size of source file in StartCopyFromUriAsync

Maciej Chmielewski 20 Reputation points
2023-05-19T07:57:58.33+00:00

I want to use StartCopyFromUriAsync method in C# Blob Storage SDK referenced here. In the docs there is nothing about source file limits. Do you know if there are any?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2023-05-19T10:06:30.45+00:00

    @Maciej Chmielewski Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    StartCopyFromUri Underneath calls the Copy-Blob REST API. https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob

     The limitations are explained here: https://learn.microsoft.com/en-us/rest/api/storageservices/copy-blob?tabs=azure-ad

    Refer here for samples: H ow to use StartCopyFromUri  can be found in our unit tests   https://github.com/Azure/azure-sdk-for-net/blob/622c2e13a827cd9c6fc80a952a6292d84bf30dae/sdk/storage/Azure.Storage.Blobs/tests/BlobBaseClientTests.cs#L1817

    csharp sample code to call StartCopyFromUriAsync() method to perform copy blob operation within same storage account

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


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


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.