KULINA
KULINA

Reputation: 23

azure applcation gateway to secure protocol

I have configured azure load balancer which points my public Ip http, and I reach my website and working fine.

[enter image description here](https://i.sstatic.net/HVB7w.png)

Now, I want to achieve a routing rule is used to redirect the application traffic from HTTP protocol to HTTPS secure protocol with the help of azure application gateway.

Can we simply add our HTTPS services to the health probe after installing an SSL certificate on the load balancer? I don't have much knowledge in networking any help highly appreciate.

Upvotes: 2

Views: 114

Answers (1)

Imran
Imran

Reputation: 5520

I tried to reproduce the same in my environment it works fine successfully.

you are able to configure your public Ip address to https using Azure application gateway. Try to create a self-signed certificate like below:

New-SelfSignedCertificate `
  -certstorelocation cert:\localmachine\my `
  -dnsname www.contoso.com
  

enter image description here

#To create pfx file
   $pwd = ConvertTo-SecureString -String "Azure"-Force -AsPlainText
   Export-PfxCertificate `
   -cert cert:\localMachine\my\<YOURTHUMBPRINT>  `
   -FilePath c:\appgwcert.pfx `
   -Password $pwd
   

enter image description here

Try to create an application gateway. you can use your exciting public Ip address like below.

enter image description here

In routing rule add your frontend Ip as public and protocol _ HTTPS _ as_ 443 ports _ and upload a pfx certificate like below:

enter image description here

Then, try to create listener with port 8080 with http and add routing rule as same and verify the backend status is healthy like below:

enter image description here

When I test the http protocol with Ip address redirect successfully like below:

enter image description here

Upvotes: 1

Related Questions