Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.52 KB

Challenge-10.md

File metadata and controls

31 lines (19 loc) · 1.52 KB

Challenge 10 - Configure VM Scale Set to Run a Web Server Using cloud-init

< Previous Challenge - Home - Next Challenge >

Introduction

The goals of this challenge include understanding:

  • How cloud-init scripts can be run on a Virtual Machine Scale Set (VMSS)

Description

We have provided a script (cloud-init.txt) that configures Apache web server on a Linux VMSS. When run on an individual VM instance, the script deploys a static web page that should be available at: http://<PublicIPofTheLoadBalancer>/wth.html

You can find the script in the Resources folder for /Challenge-10.

Your challenge is to:

  • Extend the VMSS Bicep template to configure a webserver on instances of the VM Scale Set deployed earlier
    • Deploy a new VMSS instance with a different name to the previously deployed VMSS
    • Read the script body into a string and pass it as an input parameter
    • Pass the script body to the customData property of the VM Scale Set definition

Success Criteria

  1. Verify you can view the web page configured by the script

Learning Resources