Azure Classroomnotes 02/Apr/2022

Azure DNS

  • This is a hosting service for DNS domains that provides name resolution using Azure Infrastructure.
  • We can’t use Azure DNS to buy a Domain Name.
  • For an Annual fee, we can buy a domain name by using Azure App Service Domains.
  • Azure private DNS provides a reliable and secure DNS service for your virtual network. By using Azure private DNS zones, we can use custom domainname instead of Azure provide names during deployment
  • To resolve the records of private DNS zone from your virtual network, you must link the virtual network with the zone.
  • Linked virtual networks will have full access and can resolved all DNS Records published in the private DNS zone
  • Create a public DNS zone (refer to classroom video for steps)
    Preview
  • Update the nameserver details in your domain sellers account
    Preview
  • Create a private DNS Zone: Ensure you have some virtual network
    Preview
    Preview
    Preview
    Preview
  • Once the link is created lets create two vms ensure ping is allowed
    • one in web subnet
    • one in app subnet
  • Once the vms are create navigate to private dns zone and check the records
    Preview
    Preview
    Preview
  • Lets add a canonical record
    Preview
    Preview

Activity:

  • Create two ubuntu vms in a new vnet in any subnet
  • Now install lamp stack (exclude mysql and firewall configuration) Refer Here
# ubuntu
sudo apt update
sudo apt install apache2 -y
sudo apt install php libapache2-mod-php php-mysql -y
# create a file at /var/www/your_domain/info.php with content 
<?php
phpinfo();
?>
# centos
sudo yum install httpd php -y
# create a file at /var/www/your_domain/info.php with content 
<?php
phpinfo();
?>
sudo systemctl enable httpd
sudo systemctl start httpd
  • Now access http://<public ip>/info.php
    Preview
    Preview
    Preview.
  • Now the next step is do understand and perform load balancing
    Preview
  • Update the Azure DNS to point domain name to Azure Load Balancer.

Note: Ensure You have Azure CLI installed Refer Here for the video and Refer Here for the official documentation to install Azure CLI. Refer Here for the installation of Azure powershell

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner