Share via

https port in backend pool container not working with application gateway

IT RIMSA 0 Reputation points
2023-06-07T23:32:40.3066667+00:00

Hey there, im trying to setup an application gateway to give me access to backend endpoints that are running on Azure Cotainer instance, one nginx, and one custom image.

my custom image has an open https port on 4848, how do i configure the gateway to allow traffic to hit that server ont hat port?

if i configure backend settings to use http protocol, it will redirect to https causing it to loop and fail.
if i configure backend settings to be a https protocol, it will not work because it asks me for a certificate that it not needed due to that my custom image has already generated one to server content on https

how do i overcome this if possible?

edit: i want to achieve SSL termination on frontend but by backend port works in https too

Azure Container Instances
Azure Application Gateway
Azure Application Gateway

An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.


1 answer

Sort by: Most helpful
  1. Mutaz Nassar 2,441 Reputation points Microsoft Employee
    2023-06-08T07:58:21.89+00:00

    Hi @IT RIMSA

    When you are setting up SSL between Application Gateway and Backend, if you are using a self-signed certificate or a certificate signed by a custom root CA on the backend, then you need to upload self-signed or the Custom root CA of the backend certificate on the Application Gateway. For more information you can refer to this link.

    applicationGatewayName="<gateway-name>"
    resourceGroup="<resource-group>"
    az network application-gateway root-cert create \
        --gateway-name $applicationGatewayName  \
        --resource-group $resourceGroup \
        --name backend-tls \
        --cert-file backend.crt
    

    Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.