Radhika

AZURE VIRTUAL MACHINES (VMs)

Step-by-Step Guide to Setting Up an Azure Virtual Machine (VM)

Step 1: Sign in to Azure Portal

  1. Go to Azure Portal.
  2. Sign in with your Microsoft Azure account.

Step 2: Create a Virtual Machine (VM)

  1. In the Azure Portal, click on “Create a resource” (top left corner).
  2. Search for Virtual Machine and select “Create”.

Step 3: Configure Basic Settings

  1. Subscription: Select your Azure subscription.
  2. Resource Group: Click “Create new” or use an existing one.
  3. Virtual Machine Name: Choose a name (e.g., “MyAzureVM”).
  4. Region: Choose a nearby data center (e.g., Central US, East Asia).
  5. Image: Select the OS (Windows Server, Ubuntu, etc.).
  6. Size: Pick the machine size (Standard B2s is good for testing).

Step 4: Set Up Administrator Credentials

  1. For Windows, enter a username and password.
  2. For Linux, choose SSH key or password authentication.

Step 5: Configure Networking

  1. Under Networking, select Virtual Network (default or create a new one).
  2. Set Public IP to enabled (if you want to access it remotely).
  3. Allow RDP (for Windows) or SSH (for Linux) under Inbound rules.

Step 6: Disk & Storage Options

  1. Select Standard SSD for better performance.
  2. Leave other settings as default unless you need more storage.

Step 7: Review & Create

  1. Click “Review + create”.
  2. Verify all settings and click “Create”.

Step 8: Connect to Your VM

After deployment, go to Virtual Machines → Your VM → Connect:

  • Windows: Use RDP (Remote Desktop Protocol).
    • Open Remote Desktop on your PC.
    • Enter Public IP of your VM.
    • Login using the username & password you set.
  • Linux: Use SSH (Secure Shell).

Open a terminal and type:

ssh username@your-public-ip


Step 9: Install Software (Optional)

Once logged in, you can install software based on your needs:

  • Windows: Use PowerShell or GUI to install apps.
  • Linux: Use commands like apt-get install or yum install.

Step 10: Shutdown & Delete (If Not Needed)

  1. Go to Virtual Machines → Select your VM.
  2. Click Stop (to save costs) or Delete (to remove completely).

Similiar Posts

View All AZURE

Download Syllabus

Fill up the form below to download the syllabus