Microsoft recently announced a new service called Azure Container Instances. This is an amazing offering that is now part of the Microsoft Azure lineup. Azure Container Instances provides Azure consumers with a simple and fast way to deploy containers for testing and development of applications. There is no longer a need to learn complex programming modules to configure containers. MS Azure Containers also allows the bursting and scaling of container instances as well as flexible billing such as per second billing all from a single command within Azure.
In this blog post, I am going to show you how easy it is to get your first test container operational using Azure Container Instances. First thing’s first, we need to launch our MS Azure Portal with our assigned credentials:
Azure Container Instances are configured using the command line. Here we will use the built-in Azure Cloud Shell to deploy our first container. The Cloud shell can be launched from the top ribbon with the >_ icon. If you have not used the Cloud Shell yet, you will need to associate a Storage Account within the wizard screen.
We will need to create an Azure Resource Group using the following Shell Command: "az group create -name RoveTest02 --location eastus"
For this container demo, we will be deploying the “Nginx” application to Azure Container Instances. Nginx is a free and open source web server. Within the Cloud shell, execute the following command down: "az container create -g RoveTes02 -n demo --image nginx --ip address public" This will create the Nginx application in our newly created Azure Resource Group with the demo name.
Once the Azure Container Instance has been created, you will see an output like the above screenshot. If you scroll towards the bottom of the output you will see a section called “IP”. This will be the Public IP address that has been assigned to your new container. After a few minutes, the provisioning state will change from created to succeeded and the new application will be available to launch from a web browser.
Open your internet browser on your computer, and enter the Public IP Address that was provided during the container creation process. After the webpage loads you should see the default Nginx splash screen. The Nginx splash screen will validate that the webserver is functioning correctly. As you can see, within minutes Azure Container Instances enabled us to deploy a test application container with a Public IP Address with minimal configuration.
Thanks for stopping by to read this Cloud blog post, there will be many more to come. If you have any questions related to anything around Cloud or Containers, please reach out to a ROVE team member at firstname.lastname@example.org or contact me directly at Kevin.Tuffner@withrove.com. Follow us on social media to receive notifications of upcoming blogs, webinars, and events.
Kevin Tuffner, Principal Solutions Architect, Cloud