Azure

3 Mins Read

Deploy, Connect, Automate Setting Up Ubuntu VM and Terraform on Azure

Voiced by Amazon Polly

Task 1: Create an Ubuntu VM in Azure:

  1. Sign in to the Azure Portal.
  2. Select the “Create a resource” option

 

  1. Select the “Virtual Machine” option

  1. Fill in details like resource group, VM name, region, authentication method (SSH key or password), and public IP and click on “Review and create”.

  1. Once click on “Create”, It asks for “Generate new key pair”.
  2. Click on “Download private key and create resource”.

    1. Now Go to resource and overview the configuration.

Start your career on Azure without leaving your job! Get Certified in less than a Month

  • Experienced Authorized Instructor led Training
  • Live Hands-on Labs
Subscribe now

Task 2: Connect Ubuntu VM with PuTTY:

  1. Search for PuTTYgen software on your laptop. If not installed already, download and install the latest puTTYgen package from https://www.puttygen.com/. Open puTTYgen

 

  1. In PuTTYgen Configuration window, click Generate, and start moving the mouse within the Window

 

  1. Click the Load, to load private key (i.e terraform-server_key.pem)

 

 

  1. Click the “Save private key” and select “Yes” and save >ppk file with new name (i.e terraform-server_key.ppk)

 

  1. Close the window and Search for PuTTY software on your laptop. If not installed already, download and install the latest putty package from https://www.putty.org/. Open puTTY

 

  1. In PuTTY Configuration window, Paste your Public IP or Public DNS in the Hostname (or IP Address) field.
  2. Then expand the SSH section and select Auth, click on the Browse button to select your downloaded private key file, and click on open

  1. Click Accept on the PuTTY Security Alert window

 

  1. Login as the ubuntu user

Task 3: Install Terraform on Azure VM:

  1. Follow the below steps to install Terraform.
  1. Once Terraform is installed, verify the version.
  1. Now install Azure CLI and Authenticate Azure account

 

 

To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code E2CFEUZNG to authenticate.

**click on link to open it in browser and paste code written here to authenticate

 

  1. Verify Azure CLI Installation

 

You have successfully created an Ubuntu VM on Azure, connected to it using PuTTY, and installed Terraform along with the Azure CLI. You can now use this setup to manage your infrastructure with Terraform and Azure. Happy automating!

 

 

Learn from Industry Certified DevOps Experts and Become a Certified DevOps Professional with a High Paying Job

  • Experienced Authorized Instructor led Training
  • Live Hands-on Labs
Enroll now

About CloudThat

CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!