Giter Club home page Giter Club logo

azure-vmss-immutable's Introduction

Description

This repo provides a draft PowerShell script that is used to perform an immutable upgrade to an existing Azure Virtual Machine Scale Set (VMSS). The specific use case is if you are running an Azure VMSS and wish to perform an update in an immutable, no changes to existing nodes only updating with new compute resources, manner.

The basic functioning process is when started the script will

  1. retrieve the existing VMSS and its instances
  2. Update VMSS scale to be double the instances (If 5 exist, 5 more will be created for a total of 10)
  3. Once new instances are created the new instanes that are up to date with current VMSS settings with have protection enabled to prevent their removal during scale in
  4. Update VMSS setting to scale down to half the number of existing instances (The goal being to return to the original number of instances). This will cause the original nodes that are not up to date and do not have protection enabled to be deleted leaving a VMSS of the original scale size but with instances that are using current desired configuration
  5. Remove instance protection from the remaining up-to-date instances.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.