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
    Preview
    Preview
  • While create vm select a single zone which is any of zone1, zone2, zone3
    Preview

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
    Preview
  • Lets run the above using Run Command
    Preview
    Preview
    Preview
    Preview

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Social Network Widget by Acurax Small Business Website Designers

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube