2

I am new to Azure.I have deployed my application on Azure Container Instance.It has also generated an FQDN,but when i try to access the deployed application with this FQDN via postman or browser it dosent works.Kindly let me know what extra configuration i need to do to expose the API in container.

FQDN:testapp.westus.azurecontainer.io

this is the FQDN generated after deployment of the app

1
  • Any more questions? Does it solve your problem? If it works for you please accept it as the answer. Commented Sep 19, 2019 at 9:28

2 Answers 2

2

As I said in your last question, first of all, you need to make sure the image you used could work well locally. So that it means the image is good to work. Then you need to expose the right port which your application listen to inside the container.

For example, docker image Nginx, it listens to the 80 port, then you need to expose the 80 port when you deploy the image to Azure container instance. And the FQDN has accessed the 80 port in default. If your application listens to 8080 port, and you expose it. Then you need to access your application through the FQDN like this:

testapp.westus.azurecontainer.io:8080

Expose the port in Azure CLI through the parameter --ports:

az container create --resource-group myResourceGroup --name mycontainer --image mcr.microsoft.com/azuredocs/aci-helloworld --dns-name-label aci-demo --ports 80

Expose the port in Azure portal:

enter image description here

Hope it helps. If you have any more questions, please let me know.

Sign up to request clarification or add additional context in comments.

Comments

0

Azure Container Instances enables exposing your container groups directly to the internet with an IP address and a fully qualified domain name (FQDN). When you create a container instance, you can specify a custom DNS name label so your application is reachable at customlabel.azureregion.azurecontainer.io.

Azure Container Instances also supports executing a command in a running container by providing an interactive shell to help with application development and troubleshooting. Access takes places over HTTPS, using TLS to secure client connections.

[!IMPORTANT] Starting January 13, 2020, Azure Container Instances will require all secure connections from servers and applications to use TLS 1.2. Support for TLS 1.0 and 1.1 will be retired.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.