It gives tools to manipulate all Azure components, but this post will focus on azure storage features. dest-key EwXpZ2uZ3zrjEbpBGDfsefWkj3G2QY5fJcb6kMqV2A0+2TsGno+mk9vEXc5Uw1XiouvAiTS7Kr5OGzA=Īzure CLI is a set of cross-platform commands for the Azure Platform. source-key 4YvvYDTg3UUpky8Rj5bDG4KO/R1FdtssxVnunsEd/4rAS04V2LkO0F8mXbddAv39WtCo5LW6JyvfhA= \ To copy the image to a second Azure subscription, we use the command the source is now an Azure Storage URI, and we pass the source and the destination keys: dest-key 4YvvYDTg3UUpky8Rj5bDG4KO/R1FdtssxVnunsEd/4rAS04V2LkO0F8mXbddAv39WtCo5LW6JyvfhA= source /home/frank/demo/GlobalDevopsBootcamp.jpg \
Of course, you could also use SAS token if you prefer.
We pass the full local path to the file into -source, the destination is the full URI, and finally the destination blob storage key. Here an example, to copy a single file GlobalDevopsBootcamp.jpg to an Azure Blob Storage. Net Core version of AzCopy command looks like this:Īzcopy -source -destination It is very similar to the original version, but parameters are using - and - instead of the / and where a : was required, it's now a simple space. install.shIn his simplest expression, the.
Then to install it, you just need to get it with a wget command, unzip it, and execute the install script. Sudo sh -c 'echo "deb xenial main" > /etc/apt//dotnetdev.list' Sudo mv microsoft.gpg /etc/apt//microsoft.gpg This is done very simply with few commands.
First let's say you need do move all those images from your server to an Azure blob storage.ĪzCopy /Source:C:\MyWebApp\images /Dest: /DestKey:4YvvYDTg3UUpky8Rj5bDG4KO/R1FdtssxVnunsEd/4rAS04V2LkO0F8mXbddAv39WtCo5LW6JyvfhA= /S If you need only AzCopy for a server, you can download the latest version of AzCopy.
By default, AzCopy is installed to %ProgramFiles(x86)%\Microsoft SDKs\Azure\AzCopy (64-bit Windows) or %ProgramFiles%\Microsoft SDKs\Azure\AzCopy (32-bit Windows). In his simplest expression, an AzCopy command looks like this:ĪzCopy /Source: /Dest: If you earlier have installed an Azure SDK on your machine, you already have it. The commands are very similar but not exactly the same. However, recently a second version built with. Before AzCopy was only available on Windows.
Another solution will be introduced later in this post for Mac and Linux users. At the moment, to write this post AzCopy is only available for Windows users.
I already wrote about it previously, and the content of this post is still valuable today, but I wanted to share new options and convert all ground (meaning Linux, Windows and OS X). Whether shaped as text files, images, VM VHDs or any other ways, at some point in time, our data will need to be moved. Copy, Download or Upload from-to any combination of Windows, Linux, OS X, or the cloudĭata is and will always be our primary concern.