Hello @Firoj Siddique
It sounds like you're on the right track with your annotations!
To create a listener on a custom port and ensure it uses HTTPS, you'll need to specify the protocol, custom port and the SSL certificate in your annotations.
Here are the required annotations, please feel free to refer to the document links shared at the end for precise and updated versions of these annotations.
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/appgw-ssl-certificate: "your-ssl-certificate-name"
appgw.ingress.kubernetes.io/frontend-port: "your-custom-port"
appgw.ingress.kubernetes.io/backend-protocol: "HTTPS"
Replace "your-ssl-certificate-name"
with the name of your SSL certificate and "your-custom-port"
with the custom port number you want to use.
Refer to the following document links for details:
https://learn.microsoft.com/en-us/azure/application-gateway/ingress-controller-annotations#application-gateway-ssl-certificate
Let me know if this has answered your question by upvoting this solution, post which we can promote this as answer