%3CLINGO-SUB%20id%3D%22lingo-sub-1795938%22%20slang%3D%22en-US%22%3ERunning%20Containers%20on%20Azure%20%E2%80%93%20All%20Options%20Explained%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1795938%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20want%20to%20run%20a%20container%2C%20most%20of%20the%20customers%20I%20talk%20to%2C%20immediately%20think%20about%20Kubernetes%20%E2%80%93%20this%20is%20obviously%20a%20correct%20answer%2C%20but%20there%20are%20plenty%20of%20other%20options%20available%20on%20Azure.%20In%20this%20post%20I%20am%20providing%20a%20quick%20overview%20of%20all%20the%20options.%20Firstly%2C%20I%20start%20with%20the%20standalone%20container%20options%20followed%20by%20the%20container%20orchestration%20options.%3C%2FP%3E%3CH2%20id%3D%22toc-hId--1236222027%22%20id%3D%22toc-hId--1236222026%22%20id%3D%22toc-hId--1236222026%22%20id%3D%22toc-hId--1236222026%22%20id%3D%22toc-hId--1236222026%22%3EStandalone%20Container%3C%2FH2%3E%3CP%3EIn%20this%20section%20I%20am%20going%20to%20explain%20the%20standalone%20container%20runtimes%20%E2%80%93%20while%20some%20of%20them%20could%20technically%20run%20multiple%20containers%2C%20the%20focus%20are%20mostly%20single%20instances%20of%20them.%3C%2FP%3E%3CH3%20id%3D%22toc-hId--545660553%22%20id%3D%22toc-hId--545660552%22%20id%3D%22toc-hId--545660552%22%20id%3D%22toc-hId--545660552%22%20id%3D%22toc-hId--545660552%22%3EVirtual%20Machine%20(VM)%3C%2FH3%3E%3CP%3EVirtual%20Machines%20provide%20the%20greatest%20flexibility%20to%20run%20docker%20container.%20The%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fdetails%2Fvirtual-machines%2Flinux%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E284%20different%3C%2FA%3E%20(more%20are%20being%20added%20all%20the%20times!)%20combinations%20of%20CPU%20and%20RAM%20gives%20you%20the%20perfect%20platform%20to%20run%20one%20or%20more%20containers.%20On%20both%20windows%20and%20linux%20VMs%20you%20can%20install%20the%20docker%20runtime%20and%20you%20are%20ready%20%E2%80%93%20but%20%E2%80%93%20it%E2%80%99s%20a%20VM%20that%20you%20have%20to%20maintain%20and%20configure%2C%20I%20would%20only%20consider%20this%20work%20Dev%2FTest%20workloads%20simply%20because%20the%20operational%20efforts%20are%20too%20high.%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1941852280%22%20id%3D%22toc-hId-1941852281%22%20id%3D%22toc-hId-1941852281%22%20id%3D%22toc-hId-1941852281%22%20id%3D%22toc-hId-1941852281%22%3EAzure%20Container%20Instance%20(ACI)%3C%2FH3%3E%3CP%3EAzure%20Container%20Instances%20are%20the%20exact%20opposite%20of%20the%20VM-based%20docker%20runtime%3A%20you%20provide%20the%20container%3B%20Azure%20will%20run%20it.%20If%20its%20one%20instance%20or%20a%20thousand%20does%20not%20really%20matter.%20The%20price%20depends%20on%20the%20number%20of%20vCPU%20and%20GBs%20of%20memory%20allocated%20per%20second%20%E2%80%93%20a%20serverless%20container%20runtime.%20This%20is%20ideal%20if%20you%20need%20to%20burst%20and%20simply%20do%20not%20know%20when%20the%20load%20is%20coming%20%E2%80%93%20prediction%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fdetails%2Fcontainer-instances%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecost%3C%2FA%3E%20is%20sometimes%20a%20challenge%20if%20you%20can%20only%20work%20with%20estimates.%26nbsp%3BYou%20can%20even%20combine%20ACI%20with%20Azure%20Kubernetes%20Service%20to%20mix%20and%20match%20the%20workloads.%3C%2FP%3E%3CH3%20id%3D%22toc-hId-134397817%22%20id%3D%22toc-hId-134397818%22%20id%3D%22toc-hId-134397818%22%20id%3D%22toc-hId-134397818%22%20id%3D%22toc-hId-134397818%22%3EAzure%20App%20Service%3C%2FH3%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fapp-service%2Fcontainers%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Web%20App%20for%20Containers%3C%2FA%3E%20%E2%80%93%20this%20is%20my%20personal%20hidden%20champion%20-%20you%20provide%20a%20container%3B%20App%20Service%20will%20run%20it.%20Ideal%20for%20web-based%20workloads%20because%20App%20Service%20is%20a%20web%20hosting%20platform.%20Deployment%2C%20scaling%2C%20and%20monitoring%20is%20already%20existing%20and%20can%20be%20utilized%20right%20out%20of%20the%20box.%3C%2FP%3E%3CH3%20id%3D%22toc-hId--1673056646%22%20id%3D%22toc-hId--1673056645%22%20id%3D%22toc-hId--1673056645%22%20id%3D%22toc-hId--1673056645%22%20id%3D%22toc-hId--1673056645%22%3EAzure%20Batch%3C%2FH3%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbatch%2Fbatch-docker-container-workloads%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EBatch%20compute%20and%20containers%3C%2FA%3E%20are%20a%20great%20combination%20%E2%80%93%20if%20the%20workload%20can%20be%20scaled%20across%20many%20batch%20jobs%2C%20you%20can%20put%20it%20in%20a%20container%20and%20scale%20it%20with%20Azure%20Batch.%20You%20can%20also%20leverage%20low%20priority%20VMs%2C%20great%20to%20reduce%20the%20cost.%3C%2FP%3E%3CH2%20id%3D%22toc-hId--1683559750%22%20id%3D%22toc-hId--1683559749%22%20id%3D%22toc-hId--1683559749%22%20id%3D%22toc-hId--1683559749%22%20id%3D%22toc-hId--1683559749%22%3EContainer%20Orchestration%3C%2FH2%3E%3CP%3ENow%20to%20the%20more%20complex%20and%20sophisticated%20options%20to%20run%20a%20container%20%E2%80%93%20container%20orchestrators.%20Like%20a%20symphony%2C%20you%20need%20to%20coordinate%20multiple%20containers%20on%20multiple%20hosts%20to%20%E2%80%98play%E2%80%99%20together%20-%20in%20the%20following%20I%20explain%20the%20options.%3C%2FP%3E%3CH3%20id%3D%22toc-hId--992998276%22%20id%3D%22toc-hId--992998275%22%20id%3D%22toc-hId--992998275%22%20id%3D%22toc-hId--992998275%22%20id%3D%22toc-hId--992998275%22%3EAzure%20Kubernetes%20Service%20(AKS)%3C%2FH3%3E%3CP%3EThe%20fully%20fledged%2C%20fully%20managed%20Kubernetes%20service%20on%20Azure%20%E2%80%93%20most%20of%20the%20dev%20teams%20I%20talk%20to%20appreciate%20that%20they%20can%20just%20consume%20the%20Kubernetes%20as%20a%20platform%2C%20but%20running%20and%20operating%20them%20is%20simply%20not%20something%20they%20want%20to%20do.%20So%2C%20with%20AKS%2C%20this%20is%20taken%20care%20of%2C%20you%20select%20the%20version%20of%20Kubernetes%20and%20a%20few%20minutes%20later%20you%20have%20your%20cluster%20%E2%80%93%20and%20then%20you%20can%20run%20your%20container%20symphony%20on%20it.%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1494514557%22%20id%3D%22toc-hId-1494514558%22%20id%3D%22toc-hId-1494514558%22%20id%3D%22toc-hId-1494514558%22%20id%3D%22toc-hId-1494514558%22%3EAzure%20Service%20Fabric%3C%2FH3%3E%3CP%3EAzure%20Service%20Fabric%20is%20a%20distributed%20system%20platform%20and%20the%20core%20of%20Azure.%20It%20is%20more%20of%20the%20exotic%20ways%20to%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-containers-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erun%20a%20container%3C%2FA%3E%2C%20but%20it%20can%20run%2C%20scale%20and%20operate%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1484011453%22%20id%3D%22toc-hId-1484011454%22%20id%3D%22toc-hId-1484011454%22%20id%3D%22toc-hId-1484011454%22%20id%3D%22toc-hId-1484011454%22%3ESummary%3C%2FH2%3E%3CP%3EIf%20this%20would%20have%20been%20a%20quiz%2C%20could%20you%20name%20them%20all%20before%20reading%20this%20post%3F%20The%20many%20options%20make%20it%20sometimes%20a%20little%20harder%20to%20choose%2C%20but%20having%20flexibility%20and%20choice%20is%20always%20great%20if%20you%20have%20a%20particular%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20it%20helps%2C%3CBR%20%2F%3EMax%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1795938%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ContainersOnAzure.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F227791iCBAE43BC0ADE2FB0%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ContainersOnAzure.png%22%20alt%3D%22ContainersOnAzure.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIf%20you%20want%20to%20run%20a%20container%2C%20most%20of%20the%20customers%20I%20talk%20to%2C%20immediately%20think%20about%20Kubernetes%20%E2%80%93%20this%20is%20obviously%20a%20correct%20answer%2C%20but%20there%20are%20plenty%20of%20other%20options%20available%20on%20Azure.%20In%20this%20post%20I%20am%20providing%20a%20quick%20overview%20of%20all%20the%20options.%20Firstly%2C%20I%20start%20with%20the%20standalone%20container%20options%20followed%20by%20the%20container%20orchestration%20options.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1795938%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApplication%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInfrastructure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1797980%22%20slang%3D%22en-US%22%3ERe%3A%20Running%20Containers%20on%20Azure%20%E2%80%93%20All%20Options%20Explained%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1797980%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20may%20add%20%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*%20Container%20group%20in%20ACI%20where%20you%20can%20run%20multiple%20containers%20(up%20to%204)%26nbsp%3B%26nbsp%3B%3CSPAN%3Esharing%20the%20same%26nbsp%3B%20lifecycle%2C%20resources%2C%20local%20network%2C%20and%20storage%20volumes%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcontainer-instances%2Fcontainer-instances-container-groups%3FWT.mc_id%3DAZ-MVP-5003620%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Edoc%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E*%20Azure%20Function%20App%20where%20you%20can%20use%20your%20own%20container%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-functions%2Ffunctions-create-function-linux-custom-image%3Ftabs%3Dbash%252Cportal%26amp%3Bpivots%3Dprogramming-language-csharp%23enable-continuous-deployment-to-azure%3FWT.mc_id%3DAZ-MVP-5003620%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Edoc%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Senior Member

If you want to run a container, most of the customers I talk to, immediately think about Kubernetes – this is obviously a correct answer, but there are plenty of other options available on Azure. In this post I am providing a quick overview of all the options. Firstly, I start with the standalone container options followed by the container orchestration options.

Standalone Container

In this section I am going to explain the standalone container runtimes – while some of them could technically run multiple containers, the focus are mostly single instances of them.

Virtual Machine (VM)

Virtual Machines provide the greatest flexibility to run docker container. The 284 different (more are being added all the times!) combinations of CPU and RAM gives you the perfect platform to run one or more containers. On both windows and linux VMs you can install the docker runtime and you are ready – but – it’s a VM that you have to maintain and configure, I would only consider this work Dev/Test workloads simply because the operational efforts are too high.

Azure Container Instance (ACI)

Azure Container Instances are the exact opposite of the VM-based docker runtime: you provide the container; Azure will run it. If its one instance or a thousand does not really matter. The price depends on the number of vCPU and GBs of memory allocated per second – a serverless container runtime. This is ideal if you need to burst and simply do not know when the load is coming – prediction of the cost is sometimes a challenge if you can only work with estimates. You can even combine ACI with Azure Kubernetes Service to mix and match the workloads.

Azure App Service

Azure Web App for Containers – this is my personal hidden champion - you provide a container; App Service will run it. Ideal for web-based workloads because App Service is a web hosting platform. Deployment, scaling, and monitoring is already existing and can be utilized right out of the box.

Azure Batch

Batch compute and containers are a great combination – if the workload can be scaled across many batch jobs, you can put it in a container and scale it with Azure Batch. You can also leverage low priority VMs, great to reduce the cost.

Container Orchestration

Now to the more complex and sophisticated options to run a container – container orchestrators. Like a symphony, you need to coordinate multiple containers on multiple hosts to ‘play’ together - in the following I explain the options.

Azure Kubernetes Service (AKS)

The fully fledged, fully managed Kubernetes service on Azure – most of the dev teams I talk to appreciate that they can just consume the Kubernetes as a platform, but running and operating them is simply not something they want to do. So, with AKS, this is taken care of, you select the version of Kubernetes and a few minutes later you have your cluster – and then you can run your container symphony on it.

Azure Service Fabric

Azure Service Fabric is a distributed system platform and the core of Azure. It is more of the exotic ways to run a container, but it can run, scale and operate them.

 

Summary

If this would have been a quiz, could you name them all before reading this post? The many options make it sometimes a little harder to choose, but having flexibility and choice is always great if you have a particular problem.

 

Hope it helps,
Max

 

1 Comment
Senior Member

Hi 

 

You may add :

 

* Container group in ACI where you can run multiple containers (up to 4)  sharing the same  lifecycle, resources, local network, and storage volumes doc

* Azure Function App where you can use your own container doc