CloudAcademy

Automate Azure File Sync Deployments with PowerShell

The hands-on lab is part of this learning path

Lab Steps

keyboard_tab
lock
Logging into the Microsoft Azure Portal
lock
Starting an Azure Cloud Shell (PowerShell)
lock
Creating a File Share in Azure Files with PowerShell
lock
Installing the Azure File Sync Agent on the Target VM
lock
Automating Deployment of an Azure File Sync Group
lock
Testing the Automated Azure File Sync Deployment

Ready for the real environment experience?

DifficultyIntermediate
Duration1h
Students21

Description

Lab Overview

Automation plays a key role in the corporate agility and DevOps culture. This Lab illustrates how to automate the creation of resources in Azure, and the configuration of a Windows Server 2016 VM with the goal of setting up an Azure File Sync group—a practical and non-trivial task. You will create an Azure File Sync Group with a single server in it. The beauty of automation is that you could apply the same procedure to as many servers as you like for your own environments. The PowerShell scripts you develop in this Lab could easily be used within PowerShell DSC for large-scale deployments involving dozens or more servers.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Completely automate the deployment of Azure File Sync using PowerShell
  • Understand and use Azure VM extensions, particularly the Custom Script Extension
  • Use Azure Cloud Shell for PowerShell to edit and execute PowerShell scripts
  • Explain how to automate other Azure workloads in PowerShell

Lab Prerequisites

You should be familiar with:

  • Azure File Sync
  • Azure PowerShell basics

The following Cloud Academy content can be used to meet the Lab's prerequisites:

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW

About the Author

Students10762
Labs70
Courses7
Learning paths4

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Linux Foundation Certified System Administrator (LFCS). He earned his Ph.D. studying design automation and enjoys all things tech.