Assignment: Introduction to Azure Virtual Machines

Objective

This assignment is designed to introduce you to Azure Virtual Machines, covering the setup, configuration, and basic management of VMs. By the end of this assignment, you will understand how to deploy, access, and manage VMs on Microsoft Azure.


Task 1: Create an Azure VM

  1. Log in to Azure Portal

  2. Create a New Virtual Machine

  3. Configure the VM Settings

  4. Create and Deploy the VM

  5. Document Your VM Configuration


Task 2: Connect to the Azure VM

  1. Access the VM

  2. Basic Commands


Task 3: Configure the VM

  1. Install Apache (Linux)

  2. Verify Web Server Installation


Task 3: Install Docker on the VM

  1. Install Docker

    sudo apt update sudo apt install -y docker.io sudo systemctl start docker sudo systemctl enable docker
    sudo usermod -aG docker $USER
  2. Verify Docker Installation


Task 4: Deploy a FastAPI Application Using Docker

  1. Create a Simple FastAPI App

  2. Create a Dockerfile for the FastAPI App

  3. Build and Run the Docker Container

  4. Test the FastAPI Application


Task 5: Configure Network Security Group (NSG) Rules

  1. Modify NSG Rules

Task 6: Clean Up Resources

  1. Delete the VM and Associated Resources

Deploy your own wesbsite

Deploy the website your created in the previous assignement on port 5222.


Additional Resources