Below is a step by step guide with screenshots on how to create and connect to a Linux Virtual Machine Scale Set.
Log into Azure Portal.
Proceed to the Azure Portal and use your Azure account to log in.To create Virtual Machines Scale Set (VMSS), make sure you have the required rights and a current subscription
Type vmss in the search bar as shown below.
- Click on either of the create word as shown below.
- Select active subscription from the drop down.
- Create a new resource group and or select already created one from the dropdown. For the purpose of this tutorial, we are creating a new resource group.
- Create a virtual machine scale set name and select other fields as shown below.
- Select Autoscaling and click on configure to set the parameters.
- click on pencil like object as shown below to edit the default setting.
- Ensure the following fields are set as shown below, and save.
- Scoll down and select the following fields as shown below for scale in policy.
- Ensure you select the following fields for image, architecture and size.
- Ensure you completed the highlighted fields as shown below and click on next to continue.
- Click on next until you get to networking page and click on pencil like icon as shown below to edit.
- Ensure to complete the highlighted fields as shown below and click ok to continue.
- To set the load balancing, check the Azure load balancer as shown below and click on create button to configure a new one.
- Give the load balancer a name and maintain other default parameters, then create as shown below.
- Now that the load balancer has been configured and selected as shown below, click on Review + create to continue.
- After validation has been passed, click on create to continue.
- Download the private key and ensure you note where the file is downloaded in your system.
- Wait for few minutes and allow the deployment to initialize, submit and complete. Click on Go to resource as shown below to continue.
- Instances configured can be connected to at thesame time by load balancing instead of connecting to the instances individually as shown below.
- Click on view inbound NAT rules to continue.
- To connect, search for the command prompt, right click to run as administrator and type ssh space -i space(input file path location by right clicking on the downloaded file, click properties, security and copy the objectname path) space username(Azureuser)@public IP address space -p space 50000 and click enter to continue. Type yes whenever confirmation is required as shown below.
- To update, run at the command prompt by typing sudo (space) apt-get (space)-y (space) update to continue.
- To install, run at the command prompt by typing sudo (space) apt-get (space)-y (space) install (space) nginx to continue.
- Paste your IP address on the browser to open the nginx welcome page.
Top comments (0)