Implementing Azure Automation


Course Overview

This course deep dives into Azure Automation – a cloud based automation engine hosted on Microsoft Azure. Students will learn the capability of Azure Automation as well as each component such as runbooks, modules, webhooks, Azure Automation DSC, etc. This course also covers topics such as runbook and Integration Modules development guidelines, and how Azure Automation can be integrated with other applications and Azure services such as OMS Log Analytics, Azure Site Recovery, etc.

Course Details

  • Video Length: 8 hours, 22 minutes, 9 seconds
  • Lab: 4 hours, 45 minutes, 0 seconds
  • Published: 2017-08-14
  • Level: 200

Who this course is designed for

  • This course is designed for information technology professionals that are managing both On-Premises and Public Cloud infrastructures.

Prerequisites:

  • Basic knowledge in Windows PowerShell
  • A Windows client computer running PowerShell Version 5
  • A Microsoft Azure subscription is required for hands-on labs.
  • A Microsoft Operations Management Suite is required for hands on labs
  • A Windows Server 2012 R2 computer (either On-premises or in the cloud) is required for hands on labs

Module 1: Introduction to Azure Automation

In this module you will learn the basics of Azure Automation. We will discuss various components and pricing tiers of Azure Automation, demonstrate how to create an Azure Automation account, and comparison between other On-Premises automation engines such as System Center Orchestrator and System Center Service Management Automation (SMA).


Exercise 1: Overview and Environment Setup

In this exercise, you will create a Virtual Machine (VM), in Azure that will be used to complete the exercises in this course. After the LABVM has been provisioned you will download the Student Files that will be used for this Lab, and install the Azure PowerShell Cmdlets.



Labs:
  • Exercise 1: Lab VM Setup

Exercise 2: Create an Azure Automation Account

Through Azure Automation you gain the ability to execute Runbook automations, DSC configurations/deployments and the ability to create webhook, schedules, assets and integration with Source control. In this exercise, you will configure an Azure Automation account as well as an OMS Workspace.  Then you import a script from the PowerShell Runbook and run the script.

Labs:
  • Exercise 2: Create an Azure Automation Account

Module 2: Azure Automation Runbooks Explained

In this module you will be introduced to the core component of Azure Automation - Runbooks. You will learn the different types of runbooks, runbook gallery, runbook authoring experience as well as runbook features such as Source Control Integration and Webhook support.



Module 3: Working with Automation Assets

In this module you will learn how to use Automation assets to support your runbooks. We will cover all 6 types of assets: Automation Variables; Credentials; Schedules; Connections; Certificates and Integration Modules.



Exercise 3: Creating Automation Assets for Deployments

In this exercise, you will configure a variable asset to execute against a VM that you will create using Azure PowerShell ISE. You will then create a graphical runbook configuring the parameters to execute the shutdown of the newly created VM. The purpose of this Exercise is the detail the steps for higher automation of larger environments where the machines need to be systematically shutdown.

Labs:
  • Exercise 3: Creating Automation Assets for Deployments

Exercise 4: Setting Up Source Control

In this exercise, you will configure Source Control for your Azure Automation Account. The purpose of this Exercise to help familiarize you with continuous integration, DevOps direction and history tracking and centralization of your development assets.

Labs:
  • Exercise 4: Setting Up Source Control

Lab: Implementing Azure Automation

In this Azure Automation Lab, you will configure and deploy a fully automated environment with source control and module integration. Through this environment, you will gain the ability to centrally manage you’re on premises infrastructure, the public cloud in Azure as well 3rd party providers such as Amazon Web Services. You will also configure and deploy the Operations Management Suite for monitoring and change tracking. This will enable you to gain telemetry from a centralized console to take actions through automation based on repeated events and security alerts empowering you to be proactive instead of reactive. You will also gain the ability to have source control over yourself and manage users locally with their machines through Azure PowerShell and within the Azure Platform. As you progress throughout the Exercise your LABVM is where the execution of scripts written and confirmation will take place. WEBVM-1 and WEBVM-2 will be used to validate your autonomous configuration through DSC and Integration Modules. The Hybrid Worker VM will serve as the connecting point for you to leverage runbooks within the Automation account against resources in your local datacenter and 3rd party Cloud providers.

Ultimately at the end of this lab you will have the foundation not only built but verified from a Hybrid approach, how you can fully embrace the DevOps scenario within your organization.

Exercise 5: Creating a PowerShell Runbook using PowerShell ISE

In this exercise, you will configure the Azure Automation Authoring Toolkit to add on to PowerShell ISE within the LABVM if created or on your local machine if you decided to install Azure PowerShell on your local box. You will also create a credential asset to use for authentication to the account for script execution and source control.  

Labs:
  • Exercise 5: Creating a PowerShell Runbook using PowerShell ISE

Exercise 6: Creating Webhook and Trigger a Runbook via a Webhook

In this exercise, you will create and configure a Webhook and trigger an action on an Azure Virtual Machine. The purpose of this Exercise is to use a Webhook for an automated action against an Azure Virtual Machine.

 

Labs:
  • Exercise 6: Creating Webhook and Trigger a Runbook via a Webhook

Module 4: Azure Automation Desired State Configuration (DSC)

In this module, you will learn how to use Azure Automation DSC to manage configurations of your computers, no matter if they are physical or virtual, hosted on-premises or on the cloud, Windows or Linux



Exercise 7: Managing Windows Computers with Azure Automation DSC

In this exercise, you will first perform a template deployment of an ARM template to deploy a VM into Azure.  Then configure a DSC configuration to deploy a Web Server to the Azure VM. At the end of this Exercise you will gain the basic knowledge of deploying DSC from Azure Automation to your On-premises or cloud environments.

Labs:
  • Exercise 7: Managing Windows Computers with Azure Automation DSC

Module 5: Integrating Azure Automation with OMS

In this module you will learn how to extend the capability of Azure Automation by integrating it with Microsoft Operations Management Suite (OMS). You will learn how to provision and configure Azure Automation Hybrid Runbook Workers for managing on-premises workloads, as well as how to configure OMS alert remediation using Azure Automation runbooks.



Module 6: Working with Integration Modules

In this module you will learn the how to deploy integration modules to your Azure Automation environments. You will also learn how to create your own modules and how to effectively use PowerShell package repositories such as PowerShellGallery.com to manage and maintain your modules.



Exercise 8: Working with Integration Modules

In this module, you will learn the how to deploy integration modules to your Azure Automation environments. You will also learn how to leverage modules and their function to apply configurations against resources in the cloud. You will also gain the ability on how to effectively use PowerShell package repositories such as PowerShellGallery.com to gain quick access to already created modules. A Linux command module will be used to automate the installation of an Apache Web Server.
Labs:
  • Exercise 8: Working with Integration Modules

Try Risk Free

Individual For Teams
Opsgility subscriptions include unlimited access to Opsgility official courseware, the most comprehensive online training for the Microsoft cloud and related technologies.
Subscription Benefits
  • Access to Real Time Lab environments and lab guides
  • Course Completion Certificates when you pass assessments
  • 5% off instructor-led courses
  • Easy purchase of Microsoft On-Demand Official Curriculum
  • MUCH MORE!