Copying Files Using Azure Container Instance

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you will be copying files from one Azure Files share to another Azure Files share using a combination of the AzCopy utility and Azure Container Instances (ACI). By doing this, you are performing a real-world task by running jobs and tasks on the Azure resources using an ACI container. It is expected that you will have some experience using the AzCopy command-line utility and running jobs and tasks in Azure Container Instances.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create azcopy Copy Command

Craft a command that will copy files from a source Azure File share to a destination Azure File share using the azcopy command. Hint: The --recursive flag is required when copying files between share endpoints.
AzCopy Documentation

Save Command as PowerShell Variable

Save the azcopy copy command you crafted into a variable declaration in a PowerShell environment. Hint: The Cloud Shell can act as your PowerShell environment. PowerShell Variables Documentation

Run Command to Deploy ACI

Deploy an Azure Container Instances (ACI) container using PowerShell Az cmdlets. Hint: Subsitute the -Command parameter with the $command variable. ACI Cmdlet Documentation

Additional Resources

In this hands-on lab, you are a cloud engineer that has been tasked with copying data from a source Azure Files share to a destination Azure Files share. You want to run this job as a task to copy all files and directories recursively. As a requirement, you will need to use the AzCopy utility. For the compute processing of this job, you will only need something short running because this is a one-time copy of the contents of the source share to the destination share.

Please make sure to refer to the AzCopy Documentation to craft your AzCopy command.

Also, please refer to the ACI Cmdlet Documentation as your compute for this job.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?