Azure VMSS – A Guide for Configuring Infrastructure of VMSS using Azure Portal – 1

This post will guide you on how to use Azure Portal to deploy the necessary infrastructure components related to virtual machine scale sets (VMSS).

The primary milestones for the whole configuration will be:

1.         Create a new master VM for image prototype

2.         Take snapshot from the master VM

3.         Create disk from the snapshot

4.         Create VM from the disk

5.         Generalize VM to shared image gallery

6.         Deploy VMSS from shared image gallery

7.         Associate VMSS to load balancer

8.         Create a new VM from image gallery for prepare VMSS image version update

9.         Update VMSS image version

In this blog, I will focus on milestone #1 to #4, and will continue the remaining topics in the next post.

Let’s get started from step 1.

Step 1 – Create a new master VM for image prototype

You can visit to Azure Portal to create a either Windows or Linux base VM for the VMSS image prototype, which means you need to install all of your necessary application and done the complete configuration.

If you have already had the running VM and prepared the VMSS deployment, you can directly start from to step 2

Step 2 – Take snapshot from the master VM

Step 3 – Create disk from the snapshot

StepsProcedures
1Navigate to Snapshots -> Click “Create”  

2Following the below example configuration, please choose the OS and data disk from your existing VM as source disk option.  


       
3Select the Source Disk which is the Disk of the Master VM    
4Following the default setting -> click “Review + create” -> “Create”
StepsProcedures
1Navigate to Snapshots -> Select the Snapshot which has been taken in step 2    
2Click “+Create disk”  
 
3Following the setting and adjust the Size if any    
4Following the default setting in Encryption  
 
5Following the default setting in Networking, you also can specify in private endpoint option, but please make sure you allowed firewall policy to specific network.  
6Following the default setting in Advanced  
7Following the default setting -> click “Review + create” -> “Create”  

Step 4 – Create VM from the disk

StepsProcedures
1Navigate to Disks -> Select Target Disk    
2Under Overview, click “Create VM”      
3Create VM with Subscription, Resource Group, VM name, then click “Next”    
4Following the setting as an example
 
5Following the setting as an example    
6Following the setting as an example  
 
7Following the setting as an example
     
8Following the setting as an example, you can specify tagging for easy management      
9Create the VM
   

The above steps are part of the main procedures for VMSS infrastructure deployment in Azure Portal. I will continue the remaining steps in the next blogs.

To learn more about the service and various features, please refer to the VM Snapshot documentation.

Create an Azure snapshot of a virtual hard disk – Azure Virtual Machines | Microsoft Docs

If you are interested in exploring capabilities beyond the standard offering, please feel free to contact us at enquiry@soshk.com

Again, see you in the next blogs!

David Ko
+ posts

Cloud Engineer, SOS Group Limited

Leave a comment

SOS Group Limited © 2024. All Rights Reserved.