18 ‐ Install application in Bastion server and validate the connectivity - SanjeevOCI/Azure GitHub Wiki

Create Resource Group

Create a Resource Group for the Application Gateway.

18_Application_Gateway_Azure_1

Create Virtual Network

Create a Virtual Network for the Application Gateway. Also create two Subnets of VNet

18_Application_Gateway_Azure_2

Create Virtual Machine

Create a Virtual Machine for the Application Gateway.

18_Application_Gateway_Azure_3

After creating the VM, we need to follow the below steps :

Install and Enable httpd service in VM.

Create an index file (/var/www/html/index.html)

Enable firewalld service in VM.

Add port 80 in firewall.

18_Application_Gateway_Azure_4 18_Application_Gateway_Azure_5 18_Application_Gateway_Azure_6 18_Application_Gateway_Azure_7 18_Application_Gateway_Azure_8 18_Application_Gateway_Azure_9 18_Application_Gateway_Azure_10

   apt install firewalld -y
   systemctl enable firewalld
   systemctl start firewalld
   firewall-cmd --state
   firewall-cmd --permanent --add-port=80/tcp
   firewall-cmd --reload
   firewall-cmd --list-ports
   systemctl enable firewalld

18_Application_Gateway_Azure_11 18_Application_Gateway_Azure_12 18_Application_Gateway_Azure_14