Search code examples
azuresslazure-application-gatewayazure-load-balancer

How to configure ssl with azure application gateway?


I have to configure my Microsoft Azure server like below scenario

enter image description here

So it is like a request comes with a public IP which represents application gateway having SSL and the request passes from app gateway to the load balancer.

LB just forward to the virtual machine(having SSL) on the basis of the port number.

Here there is only one public IP and virtual machine selected according to the port.

I made the configuration but the only thing I am missing that is SSL configuration with Application gateway and same SSL in a virtual machine.

I don't know my configure pattern is right or wrong please suggest me if you have a good option.

My goal is to achieve the request (with the public IP) passes from the application gateway having SSL to the virtual machine also having the same SSL on the basis of ports with the same public IP, Is there any better option than my configuration pattern?

Please help me, How to achieve it.


Solution

  • You can use the following Settings in Application Gateway and you don't need ILB in-front of your VM.

    1. Create a Application gateway. Create 3 Multi-site Listener. Upload Certificates and enter Host Name and the respective ports.
    2. Create 3 Backend Pool and add your VMs to it.
    3. Create 3 HTTP Settings. Upload authentication certificates and configure respective ports. Create and attach Health Probes to HTTP Settings.
    4. Create rules where you link corresponding listeners with HTTP Settings and backend pool.
    5. Check if the Health Probes are healthy. If yes, then your setup is complete.