Creating and Connecting to a Linux Virtual Machine Scale Set

Creating and Connecting to a Linux Virtual Machine Scale Set

Efficiently Managing and Scaling Your Linux Infrastructure

  1. Login to the Azure Portal

  1. Type “Virtual Machine Scale Set“ in the search bar

  2. Choose “Virtual Machine Scale Set“ in the options

  1. Click on Create

  1. Fill the fields in the Basic tab

At the scaling section, choose “Autoscaling“ then click on “configure”.

  1. Edit the “Scaling Conditions“ by clicking on the pen symbol

  1. Fill in the conditions necessary for the VMSS.

    1. Always make use of the information icon at each field to learn more.

  1. Click “Save“ when you are done highlighting the conditions.

Confirm your changes.

  1. Choose a “Scale-In-Policy“

  2. Check the “Apply force delete to scale-in-operation“ checkbox

  3. Click “Save“

  1. Choose the Linux image you wan to use.

  2. Choose the disk size

  1. Choose the SSH public key

  2. Rename the “Username“ or leave the default.

  3. Click on the “Next“ button until you get to “Networking”

  1. Edit the “Network Interface”

  1. At the “Public Inbound Ports“, select the “Allow selected ports“ option

  2. Check Port 22 for SSH and Port 80 for Web browser.

  3. Enable “Public IP Address“

  4. Click “OK“

  1. In the Load Balancing Section, choose “Azure Load Balancer“

  2. Create a Load Balancer or select if there is an existing one.

  3. If newly created, give the Load Balancer a name.

  4. Click “Create“

  1. Click on “Review + Create“ button

  1. Once validation is passed, click on create.

  1. One the dialog box that pops up, click on “Download private key and create resource“ option

  1. Note the location on the computer a .pem file is downloaded to.

  1. When deployment is complete, go to resource.

  1. On the left pane of the window, click on “Instance“ to see the number of VMs created.

  1. To connect to the VMSS, open command prompt on your computer. Note, always run as administrator.

  1. Type this command on the command prompt. Then press enter key on the keyboard.

    ssh -i location\filename username@ip-address -p 50000

    location: where the downloaded file is on the computer

    filename: the name of the downloaded file

    username: the username you created when deploying your VMSS. The default is azureuser

    ip-address: you can use the ip address of the load balancer to connect to the VMSS

  2. Type yes when asked. and press enter on the keyboard

  1. Once the green lettering shows on your command prompt, then you have successfully connected to the VMSS

How to get the location and filename of the downloaded file.

You can use the copy and paste method.