Deploy Containers with Azure Container Instances

In this blog post, I will show you how to deploy Containers to Microsoft Azure using Azure Container Instances.

About Azure Container Instances

Azure ACI is the simplest and most cost-effective way to deploy Containers in Azure without using Web app or Virtual machines.

Get Started

To get started, I will show you how I deploy a Windows Server 2016 Container using docker Hub, however if you have a containerized application stored in Azure Container Register you can easily call it and deploy it.

ACI offers Linux Container and windows Containers as you will see in the wizard.

To access ACI, I will click on Create a resource from the portal -> Containers -> Container Instances

In the create page, I will fill in the name of the container and fill in the image details.

Select Image type

If you are using a private container registry, click on Private and fill in the image name and login details.

In this example I am using a public container image and deploying IIS Server running on Windows Nano Server image.

In the instance size configuration, I am selecting Windows Containers as the underlining host and leaving the instance memory and CPU as default.

When the deployment is completed, I will see the Container below

When deploying containers, it might take a few minutes for the deployment to complete depending on the image size.

When the status shows running the container is ready.

To access the IP address, I will copy the IP address of the container from the overview page and pate it to my browser

As you can see my Container has been deployed successfully and IIS is up and running.

Conclusion

ACI is a great platform for Containers deployment both for Windows and Linux and allows to deploy container images stored in Azure Container Registry, Docker hub or private registry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.