Search code examples
azurecontainersazure-container-apps

Container Apps URL unable to view inside VM on Azure Portal


Need help on Container Apps URL not able to view, see error message. This is trying to access inside VM on azure portal. enter image description here

Here is the ingress settings: enter image description here

Here is not using public IP. nslookup says Unknown cant find https://...

Any help on this would really appreciated. Adding NSG config. enter image description here


Solution

  • Container Apps URL unable to view inside VM on Azure Portal

    The above error you encountered is due to port 80 not allowed in the NSG (which is attached to the VM) to access the container app.

    To resolve the issue, select HTTP under the ingress type, enable the insecure connection on port 80, and create an outbound rule in the NSG allowing port 80.

    enter image description here

    Enable allow Insecure connections; follow the MS DOC for more details

    enter image description here

    Create an outbound rule in the VM's attached NSG for port 80 so that all traffic from the VM can access it automatically

    enter image description here

    After configuring all the settings, the container app is accessible from the VM

    enter image description here

    Result from outside of the VNET.

    enter image description here