Giter VIP home page Giter VIP logo

aib-vmss-demo's Introduction

Azure Image Builder with Virtual Machine Scale Sets demo

This repo contains a set of Bicep files that demonstrate Azure Image Builder (AIB) and Virtual Machine Scale Sets (VMSS) working together.

For the purposes of the demonstration, AIB takes a Windows Server 2019 image from the Azure Marketplace and then adds the IIS roles and features. AIB then publishes the resulting image into a shared image gallery. Once the image has been successfully created, a VMSS is then created from that image.

We have also demonstrated how you can use a custom script extension on the scale set to perform post-boot configuration on the VMs.

Napkin architecture image

To deploy this sample

  1. Create a resource group.

  2. Deploy the main.bicep file, such as by running the following command:

    az deployment group create -g MyResourceGroup -f ./main.bicep
    

    The deployment will take some time - potentially an hour or more.

  3. Once the deployment succeeds, you can access the VMSS through a web browser, or using RDP.

Note on Bicep code

The main.bicep file does the following, in sequence:

  1. Deploys Azure Image Builder and a shared image gallery.
  2. Runs Azure Image Builder to build an image.
  3. Deploys a VM scale set that uses the image.

The second step is necessary because AIB requires you to explicitly run the build process. An ARM deployment script is used to execute the operation.

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.