Using Virtual Machine Scale Sets to create VMs in Multiple AZs - Extra | Scribe

    Using Virtual Machine Scale Sets to create VMs in Multiple AZs - Extra

    • Hafeez Baig |
    • 27 steps |
    • 4 minutes
    1

    Sign in into the **Microsoft Azure Portal**

    2

    Type **Virtual Machine scale sets** in the search bar and click on the **Virtual Machine scale sets**

    information ordinal icon

    **What is Virtual Machine scale set?**\ \ A Virtual Machine Scale Set (VMSS) is a feature in Azure that allows you to deploy and manage a group of identical, auto-scaling virtual machines. VMSS automatically adjusts the number of virtual machines in the set based on demand or a defined schedule. This capability helps ensure high availability and scalability of applications hosted on Azure.

    3

    On the **Virtual machine scale set** dashboard, click on the **Create** dropdown button

    4

    Click on the **Resource group** dropdown and select the resource group **computer-rg** option **Note:** If you do not have a Resource group, you can create one by clicking on the **Create new** link option

    information ordinal icon

    **What is Resource group?**\ \ A resource group is a logical container in Azure that holds related Azure resources such as virtual machines, databases, web apps, and storage accounts. It helps organize and manage these resources as a single unit, enabling easier management, monitoring, and resource deployment.

    5

    Scroll to the **Scale set details** section and enter **Virtual machine scale set name** as "**vm-scale-set-1"**

    6

    Click on the **Availability zone** dropdown and select all the Zones options

    7

    Scroll to the Image section, click on the **Image** dropdown and select **Ubuntu Server 20.04 LTS -x64 Gen2 (free service eligible)** option

    8

    Click on the **Size** dropdown and select the option **Standard_Bs1 - vcpu, 1GiB Memory (free service eligible)**

    9

    Scroll to the **Administrator account** section and select the **SSH public key** option for the Authentication type

    information ordinal icon

    **What is SSH public key Authentication type?** SSH public key authentication is a method of authentication that relies on asymmetric cryptography. In this process, a user generates a key pair consisting of a public key and a private key. The public key is placed on the server (in this case, an Azure virtual machine), while the private key is kept securely by the user. When the user attempts to connect to the server, the server requests proof of identity.

    10

    Click on the **Public key source** dropdown and select the option **Use existing key stored in Azure** **Note:** You can also select **Generate new key pair** option if you do not have an existing key pair

    information ordinal icon

    When you choose the "**Generate new key pair**" option, a public key will be downloaded to your system. This key can later be used for connecting to and authenticating with the virtual machine in Azure.

    11

    If you have selected **Use existing key stored in Azure** option, click on the **Stored Keys** dropdown and select the option **my-first-vm_key**

    12

    Click on the **Networking** tab to modify Network configuration

    13

    Scroll to the **Network interface** section and click on the **Edit** widget of Name **computer-rg-vnet-nic01**

    information ordinal icon

    **What is Network Interface Card (NIC) in VM Azure?**\ \ In Azure, a network interface (NIC) for a virtual machine (VM) is essentially the network connection point for the VM. It defines the virtual network settings for the VM, including the IP configuration, DNS settings, and network security group associations. The network interface facilitates communication between the VM and other resources, both within and outside of the Azure network.

    14

    **Edit network interface** wizard will open, give name as - **computer-rg-vnet-nic01**

    15

    Scroll to the **Public inbound ports** section select the option **Allow selected ports**