Lab Setup
- Create an ubuntu 18.04 vm
- install the lamp stack by following the documentation. Refer Here
- Login into azure vm and execute the following commands
sudo apt-get update
sudo apt-get install apache2 -y
sudo apt-get install php libapache2-mod-php php-mysql -y
sudo apt-get install php-cli
sudo -i
echo "<?php phpinfo(); ?>" > /var/www/html/info.php
exit
sudo apt install stress -y
- Now navigate to
http://<publicip>/info.php
- Now lets create a vm image from this vm
- Now delete the resource group in which vm is created (we just need vm image)
- We need to create a network with infra which resembles the following architecture
Azure DNS
- To use Azure DNS, we must first create a DNS Zone
- DNS Zone will have DNS Records for a specific domain and it can hold records of single domain.
- Let create a Azure DNS zone