Azure VMSS
- Azure VMSS enables automatic scaling of vm’s
- To us Azure VMSS, lets create VM Images
Azure VM Image
- Azure VM Images are of two types
- Generalized:
- Doesn’t container user specific information i.e. while creating the vm we need to set username & password/key
- Specialized:
- Contain user specific information (like AMI)
- Azure Identifies images with urn (uniform resource name) which is combination of
- publisher
- offer
- sku
- version
- azure vm image urn is consistent across regions unlike ami id.
- To create a vm image we create a vm, install necessary configurations, Capture image
- While capturing the generalized image, azure
- removes user specific information from vm
- Captures the snapshot to create vm image
- This makes the vm unusable after vm image creation.
Azure Compute Gallery
- This service is used to store and manage custom images
- Gallery enables us to create image definitions which represent an application/custom image
- In Each image definition we can store multiple versions of the image
- We will create an image definition for foundry and carpenter and store one version of the image respectively
Foundry VM Image
Foundry
- Lets create an azure vm with ubuntu 24.04 and execute the following
#!/bin/bash
sudo apt update
sudo apt install nginx unzip stress -y
cd /tmp
wget https://www.free-css.com/assets/files/free-css-templates/download/page294/troweld.zip
unzip troweld.zip
mv troweld-html/ foundry/
sudo mv foundry/ /var/www/html/
Carpenter
- Now lets create an Azure VM imge by following the steps as done in previous case (refer classroom recording if necessary)
#!/bin/bash
sudo apt update
sudo apt install nginx unzip stress -y
cd /tmp
wget https://www.free-css.com/assets/files/free-css-templates/download/page294/woody.zip
unzip woody.zip
mv carpenter-website-template/ carpenter/
sudo mv carpenter/ /var/www/html/
- Watch video for the steps
Like this:
Like Loading...