Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon
Labs

Using Custom Images for a Virtual Machine Scale Set in Azure

Your company has a custom Linux VM that they want to redeploy to a virtual machine scale set. You must find an efficient way of redeploying this VM without having to manually install all custom packages and settings.

Azure icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 15m
Published
Clock icon Oct 09, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Start Cloud Shell

    1. Click the Cloud Shell icon (>_) in the upper right.
    2. Select Bash.
    3. Click Show advanced settings.
    4. Change Cloud Shell Region to West US.
    5. For Storage account, select Use existing.
    6. For File share, select Create new and give it a name of "fileshare".
    7. Click Create storage.
  2. Challenge

    Set Resource Variables in Cloud Shell

    1. In the Azure portal, click the listed resource group name.
    2. Copy it to your clipboard.
    3. In Cloud Shell, set the RG variable, replacing <RESOURCE_GROUP_NAME> with the name you just copied.
    4. In the Azure portal, click the virtual machine provisioned with this lab.
    5. In the left menu, click Properties.
    6. Scroll down and copy the Resource ID to the clipboard.
    7. In Cloud Shell, set the IMAGE variable, replacing <RESOURCE_ID> with the name you just copied.
  3. Challenge

    Create an Image from the VM

    1. Create an image gallery.
    2. Create an image definition.
    3. Create an image version.
  4. Challenge

    Create a Virtual Machine Scale Set from an Image

    1. In the Azure portal, scroll the listed resources and click the new image definition file.
    2. In the left menu, click Properties.
    3. Scroll down and copy the Resource ID to the clipboard.
    4. In Cloud Shell, create a VM scale set, replacing <RESOURCE_ID> in the image variable with the name you just copied.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans