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 Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,722 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,449 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 43,806 Reputation points Microsoft Employee
    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.