

To copy files from one container to another, first, generate a new SAS token. In this section, let’s copy files, directories and even the entire blob container from container1 to container2. You’ve already created two storage containers called container1 and container2. Rather than using a local file path, you’d change up the parameters to use one blob container URL as the source and another blob container URL as the destination. There’s no need to stop now! Not only can you copy directories and files to/from on-prem, you can also copy blobs across storage containers. Throughout this article, you’ve been using the azcopy copy command quite a bit. > azcopy make Ĭopying a directory and its contents Copying Files Between Azure Storage Containers Now that you know the endpoint URLs, use the azcopy make command passing each endpoint URL as a parameter as shown below. In this example, the containers will be created in a storage account called storageaccount1207 creating two endpoint URLs: The endpoint URL adheres to the format: First, define the endpoint URL. Note: Before creating a new container, you must know the container’s endpoint URL.

In the example you’ll be using, you’ll create two new containers named container1 and container2.

