Build your first Azure Instances with Ansible - Step by Step Tutorial

Published: 15 June 2021
on channel: LondonIAC / Dennis McCarthy / Automation Engineer
5,526
88

In this video, I'm going to show you how to build your first Azure Instances using Ansible. We're going to use a Ubuntu 20 VM as our Ansible control node, and use Ansible to automate the entire process.

By the end of this tutorial, you'll be able to build a simple Azure VM using Ansible, and be able to manage it using Ansible playbooks. This is a great way to learn Ansible, and start automating your tasks on an Azure instance!

Subscribe To Me On YouTube: https://bit.ly/lon_sub

Gist for all the command & Playbook: https://gist.github.com/dmccuk/9705c8...

If you need to build your own VM, follow my guide on building your first AWS EC2 instance here:    • Getting started with AWS EC2 | Hands-...  

As far as I could see, there is no one document that does what I’m about to show you. It’s split across 3-4 docs and you need to go back and forth to setup your server, credentials and ansible to create a VM.

The most important part of this video isn’t building the VM, it’s setting up your credentials to be able to connect to Azure using Ansible. Building the VM just gives this demo some meaning.

There are a few Steps to this so I’ll start at the beginning, showing you all the steps to successfully build a VM and login to it via SSH.

• Setup a [free] account on Azure (You need to do this yourself).
• Install Ansible, python3-pip, the Azure Ansible modules.
• Install Azure CLI and login to your account.
• Create a service principal and a assign role.
• Get the account details for azure and create a credentials file:
o SubscriptionID, tenant, ClientID & Password.
• Test Ansible connectivity
• Create a Resource group
• Write a playbook to create a VM in Azure.
• Then delete the resource group


Remember: Always Read the documentation!

#azure #ansible #automation


Watch video Build your first Azure Instances with Ansible - Step by Step Tutorial online without registration, duration hours minute second in high quality. This video was added by user LondonIAC / Dennis McCarthy / Automation Engineer 15 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,526 once and liked it 88 people.