I have been referring to the document https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python. I have not been able to find the proper APIs for copy/move a file from one container to another container. Let's say I have two containers A and B. Now I want to copy a blob from A to B. How can I achieve this? An example will be appreciated.
Library details:
azure-core==1.1.1
azure-storage-blob==12.0.0
Note: I have been through this thread which is supported only in older version of the SDK.
Here's a full example for version 12.0.0 of the SDK:
See here for more information on how you can get the connection string and access key for the container.
This answer assumes that both containers are within the same subscription.
You should take a look at
start_copy_from_url
method in the SDK.From the same link: