Connecting to Azure Virtual Machine and Running Commands | Scribe

    Connecting to Azure Virtual Machine and Running Commands

    • Hafeez Baig |
    • 10 steps |
    • 54 seconds
    information ordinal icon
    Refer to this guide to learn How to create your first Virtual Machine in Azure\ <https://scribehow.com/shared/Creating_your_first_Virtual_Machine_in_Azure__m7sJfxD7SKOuonRH8SNW2A>
    1
    Sign in into the **Microsoft Azure Portal**
    2
    Type **Virtual Machines** in the search bar and click on the **Virtual machines** to view the Virtual Machines dashboard
    information ordinal icon
    **What is Azure Virtual Machine?** An Azure Virtual Machine is a scalable computing resource provided by Microsoft Azure, enabling users to deploy and manage virtualized instances of operating systems such as Windows or Linux in the cloud.
    3
    **Virtual Machines** wizard will open, click on the Name **my-first-vm**
    4
    **my-first-vm** wizard will open, on the top left side you can **Restart** and **Stop** the VM
    5
    Click on the **Connect** dropdown and click on the **Connect** option on the top left side
    6
    **Connect** wizard will open, scroll to the **SSH using Azure CLI** wizard and click on the **Select** button
    information ordinal icon
    **What is SSH using Azure CLI?**\ \ SSH using Azure CLI is a method to securely connect to your Azure virtual machines from the command line. By using the Azure Command-Line Interface (CLI), you can execute SSH commands to establish a secure shell session with your VM, allowing you to manage and configure it remotely.
    7
    **Azure CLI** wizard will open on the right side, tick the check box, and click on the **Configure + connect** button
    8
    **Azure Cloud Shell** wizard will open, type "**yes**" to continue the process of connecting
    information ordinal icon
    Congratulations on successfully connecting to your Azure VM using Azure CLI!
    9
    Type the command [[whoami]] to view the VM name
    10
    Type the command [[python3 --version]]
    information ordinal icon
    **What is command [[python3 --version]]?**\ \ The command `python3 --version` checks and displays the installed version of Python 3 on your system.
    information ordinal icon
    Congratulations! on completing this lab and Connecting to Azure Virtual Machine and Running Commands