- A Cloud Guru
Copying Files Using Azure Container Instance
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.
Table of Contents
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. AzCopy Documentation
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
What's a lab?
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.