Azure Classroom Series – 20/Apr/2020

Virtual Machine Scale Sets (VMSS)

Scenario: Application in Need of Resources

  • Consider we have an hypothetical ticketing (movie) which is called QTbooking
  • This application has 3 tier architecute Preview
  • Now due to some holiday season, the load on your application is increased, i.e. number of users have increased, to solve this we would like to scale horizontal Preview
  • How to do this if the application is hosted in azure in an effective way?
  • Lets look at possibilities assuming the servers are virtual machines, we have two possibilities for managing computing
    • Virtual Machines
    • Virtual Machine Scale sets
  • To make the access to external world easier, we would use Load balancer and there are two possibilities
    • Azure Load Balancer
    • Azure Application Gateway

If we decide to Scale using Virtual Machines

  • To add additional azure vm => Manually add it
  • When to add addition azure vm => Manully monitor it
  • Add additional vms to loadbalancer => Manual integration with Loadbalancer or Application Gateway
  • High Availability => Manually create Availability Set or choose Availability zone options

If we decide to Scale using Virtual Machine Scale Sets

  • To add additional azure vms => Automatically by creating a configuration
  • When to add addition azure vm => Automatically by creating a configuration
  • Adding additional vms to loadbalancer => Automatic integration with Loadbalancer or Application Gateway
  • Hight Avaliability => Automatic distributiion is enabled by configuration

what is required for VMSS

  1. Generally all the machines in VMSS will have the same VM Image and Same VM size
  2. VMSS becomes the backend for Loadbalancer or Application Gateway Preview

Steps

  1. Create an VM Image: Refer Here
  2. Create a Load Balancer
  3. Create a VMSS

LoadBalancer

  • Create a Loadbalancer from portal Preview
  • Select
    • Resource Group
    • Name
    • Region
    • Type => Public
    • SKU => Basic
    • Public IpAddress => Create New with Static
  • For the cli options to create loadbalancer Preview
  • For powershell options Preview

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin