MultiCloud Classroom notes 08/Feb/2025

Automatic Deployments in Azure VMSS

  • Lets Configure Azure vmss for automatic upgrades
  • Lets create a new image definition for welcomeapp
  • First version will be blue welcome page and then lets create a second version with pink welcome page

Lab setup

  • Version 1 home page
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Welcome!</title>
  <style>
    body {
      font-family: sans-serif;
      background-color: #ADD8E6; /* Light Blue */
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh; /* Make sure it fills the whole viewport */
      margin: 0; /* Remove default body margins */
    }

    .container {
      text-align: center;
      padding: 20px;
      background-color: #FFFFFF; /* White container background */
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
    }

    h1 {
      color: #007BFF; /* A brighter blue for the heading */
    }

    p {
      font-size: 1.2em;
      color: #333;
    }

  </style>
</head>
<body>

  <div class="container">
    <h1>Welcome to Learning!</h1>
    <p>We're glad you're here to start your learning journey!</p>
  </div>

</body>
</html>

  • Version 2 home page
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Welcome!</title>
  <style>
    body {
      font-family: sans-serif;
      background-color: #FF69B4; /* Hot Pink */
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
    }

    .container {
      text-align: center;
      padding: 20px;
      background-color: #FFFFFF; /* White container background */
      border-radius: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    h1 {
      color: #C71585; /* Medium Violet Red (darker pink) */
    }

    p {
      font-size: 1.2em;
      color: #333;
    }

  </style>
</head>
<body>

  <div class="container">
    <h1>Welcome to Learning!</h1>
    <p>We're glad you're here to start your learning journey!</p>
  </div>

</body>
</html>

Azure VMSS Creation steps

  • Rest of the steps remain as it is view our previous creation
  • The difference will be in Upgrage Policy in Management Tab
    Preview
  • Watch classroom recording

Load Balancers

  • When we scale number of vms we need to give an consistent ip address/name to the user, We will create Load Balancers as a consistent ip/name
  • We have two types of load balancers
    • Layer 4 load balancer
      • At this layer it has knowledge of ip, protocol and port
    • Layer 7 load Balancer
      • At this layer it has all the knowledge of layer 4 and also url
      • Suitable for multiple vmss where the routing decision is based on
        • paths in url
        • HTTP headers
        • Hostname

Azure Lab setup

  • Lets create a vmss with foundry and one more vmss with carpenter
  • Now lets create a layer 7 lb in Azure (Azure Application Gateway) which does path based routing
  • Generally load balancers will have health checks
  • Azure calls a VMSS as a backend pool
  • Watch classroom recording for steps

Exercise

  • Try doing the same with AWS Application load balancer

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube