Zone Based Deployment
- Depending on number of zones which you select while creating vm, those many vm’s will be created
- While create vm select a single zone which is any of zone1, zone2, zone3
VM Application Deployment Options
-
If we want to deploy application on a vm what are the options
- Create a VM
- login and install application
- Use Run Command to install the application
- If the application needs to installed and configured only during vm creation use Userdata/Custom Data
- Create a VM deploy application and create a reusable
- Managed Image
- Shared Image Gallery
- Create a VM and deploy applications using Azure VM Extensions
- Create a VM
- For demonstration purposes, i will be install lamp stack
sudo apt update
sudo apt install apache2 stress -y
sudo apt install php libapache2-mod-php php-mysql -y
# run this command as root user
# sudo -i
echo '<?php phpinfo(); ?>' > /var/www/html/info.php
- The application runs on 80 port accessed by
http://publicip/info.php
- Lets run the above using Run Command