Automate Hybrid Processes Using Azure Automation

45 minutes
  • 6 Learning Objectives

About this Hands-on Lab

This hands-on lab walks through the process of onboarding a hybrid runbook worker and configuring hybrid process automation.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an Active Directory Domain Services (AD DS) User Account, and Delegate Permissions
  1. Create an AD DS user account that can be used to automate the process of disabling inactive accounts.
  2. Delegate the required permissions using the principle of least privilege.
Create an Azure Automation Credential
  1. Create an Azure Automation credential with the login details of the account you created in AD DS.
Create a Hybrid Worker Group, and Onboard a Hybrid Worker
  1. Create a hybrid worker group, and onboard BRAHW1 as a hybrid worker.
Create the Runbook
  1. Create a runbook named Disable-InactiveADAccounts with the following PowerShell script.
Test the Runbook
  1. Test the runbook using the Test Pane.
Start the Runbook
  1. Remove the WhatIf parameter from the script.
  2. Save and publish the runbook.
  3. Start the runbook, and observe the results.

Additional Resources

Scenario

You are a senior automation engineer at Barrier Reef Audio, a company that focuses on generating text from speech using a range of high-quality audio equipment and machine learning.

You are responsible for automating processes at Barrier Reef Audio, including Active Directory processes.

To avoid the security risks associated with inactive user accounts, you want to ensure that inactive user accounts are automatically disabled in the Barrier Reef Audio Active Directory Domain Services (AD DS) domain.

You decide to use an Azure Automation runbook and an Azure Hybrid Runbook Worker to automate this process.

In this lab, you will:

  1. Create an Active Directory user account, and delegate permissions.
  2. Create an Azure Automation credential.
  3. Create a hybrid worker group, and onboard a hybrid worker.
  4. Create a runbook.
  5. Test a runbook.
  6. Start a runbook, and observe the results.

Lab Setup

In this lab, you will be connecting to VMs using Remote Desktop and the Azure portal.

Log in to the Azure portal using the credentials provided, and make sure you’re using an incognito or private window.

You will also need to use a Remote Desktop client:

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?