Fixed Scaling with VMSS
- Steps to be followed
- Create a VM Image in Azure Compute Gallery with phpinfo and stress.
- Commands:
sudo apt update
sudo apt install apache2 stress -y
sudo apt install php libapache2-mod-php php-mysql -y
echo "<?php phpinfo(); ?>" > info.php
sudo cp info.php /var/www/html/info.php
- We have the done the above steps in the previous session
- The Vm Image version is created
- Lets create a VMSS
- IN the vm image we have application running on port 80
- Now lets create a load balancer (Layer 4)
- The public ip shown is public ip of load balancer. Now navigate to
http://<publicip-lb>/info.php