Voiced by Amazon Polly |
Task 1: Create an Ubuntu VM in Azure:
- Sign in to the Azure Portal.
- Select the “Create a resource” option
- Select the “Virtual Machine” option
- Fill in details like resource group, VM name, region, authentication method (SSH key or password), and public IP and click on “Review and create”.
- Once click on “Create”, It asks for “Generate new key pair”.
- Click on “Download private key and create resource”.
-
- 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
Task 2: Connect Ubuntu VM with PuTTY:
- 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
- In PuTTYgen Configuration window, click Generate, and start moving the mouse within the Window
- Click the Load, to load private key (i.e terraform-server_key.pem)
- Click the “Save private key” and select “Yes” and save >ppk file with new name (i.e terraform-server_key.ppk)
- 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
- In PuTTY Configuration window, Paste your Public IP or Public DNS in the Hostname (or IP Address) field.
- Then expand the SSH section and select Auth, click on the Browse button to select your downloaded private key file, and click on open
- Click Accept on the PuTTY Security Alert window
- Login as the ubuntu user
Task 3: Install Terraform on Azure VM:
- Follow the below steps to install Terraform.
1 2 3 4 5 6 7 8 9 10 11 12 |
# Update packages $ sudo apt update # Download and install Terraform $ wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg $ echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list $ sudo apt update && sudo apt install terraform -y |
- Once Terraform is installed, verify the version.
1 |
$ terraform version |
- Now install Azure CLI and Authenticate Azure account
1 |
$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash |
1 |
$ az login |
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
- Verify Azure CLI Installation
1 2 3 |
az group list -o table az vm list -o table |
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
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 Partner, AWS Migration Partner, AWS Data and Analytics Partner, AWS DevOps Competency Partner, AWS GenAI Competency Partner, Amazon QuickSight Service Delivery Partner, Amazon EKS Service Delivery Partner, AWS Microsoft Workload Partners, Amazon EC2 Service Delivery Partner, Amazon ECS Service Delivery Partner, AWS Glue Service Delivery Partner, Amazon Redshift Service Delivery Partner, AWS Control Tower Service Delivery Partner, AWS WAF Service Delivery Partner and many more.
To get started, go through our Consultancy page and Managed Services Package, CloudThat’s offerings.
WRITTEN BY Sirin Kausar Isak Ali
Click to Comment