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.
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
azcopycommand. Hint: The
--recursiveflag is required when copying files between share endpoints.
- Save Command as PowerShell Variable
azcopycopy 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
-Commandparameter with the
$commandvariable. ACI Cmdlet Documentation