Azure Classroomnotes 21/Feb/2023

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
  • 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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About continuous learner

devops & cloud enthusiastic learner