Building an Azure Virtual Machine with Ansible
1 h 15 m
Lab Overview
In this lab, you will create and deploy resources leveraging Ansible within the Azure CloudShell. This lab will guide you through the process of setting up the Azure CloudShell for use with Ansible. You will then create a Ansible Playbook from within the CloudShell and use it to deploy a virtual machine along with the dependant Azure resources.

Related Learning Path(s):
Introduction to Configuration Management
  • Understand how to authenticate to Azure with Ansible
  • Understand how to deploy Azure Infrastructure with Ansible
  • Understand how to use dynamic inventory with Azure VMs and Ansible for configuration management
  • Familiar with Azure Infrastructure as a Service
  • Familiar with a Bash shell and Linux editors
In this exercise, you will setup Ansible with access to your Azure subscription using the Azure Cloud Shell.
In this exercise, you will create Ansible playbooks that will manage the virtual machine you just created. You will create two playbooks to stop then start the machine.
In this exercise, you will create two additional virtual machines for testing. You will then tag one of them and use Ansible to install Nginx on the tagged virtual machines. From there, you will confiure a dynamic inventory that includes configured Azure resources. 
Real-Time Lab
Not Registered?
Create Account
Already Registered?
What are Labs?

Labs provide a live environment to get hands-on experience using the same tools and services in the real world.

Learn More