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 a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.

CloudThat is the first Indian Company to win the prestigious Microsoft Partner 2024 Award and is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 650k+ professionals in 500+ cloud certifications and completed 300+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training PartnerAWS Migration PartnerAWS Data and Analytics PartnerAWS DevOps Competency PartnerAWS GenAI Competency PartnerAmazon QuickSight Service Delivery PartnerAmazon EKS Service Delivery Partner AWS Microsoft Workload PartnersAmazon EC2 Service Delivery PartnerAmazon ECS Service Delivery PartnerAWS Glue Service Delivery PartnerAmazon Redshift Service Delivery PartnerAWS Control Tower Service Delivery PartnerAWS WAF Service Delivery Partner and many more.

To get started, go through our Consultancy page and Managed Services PackageCloudThat’s offerings.

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!