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
  • The application runs on 80 port accessed by http://publicip/info.php
  • Lets run the above using Run Command



Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%