AZ, ACI, AKS, ACS in 5 minutes top chrono !

Sebastien Goasguen
Feb 9, 2018 · 4 min read

Ok maybe 10 to 15…that was just a bait ! But this is not the 80s anymore :)

Image for post
Image for post

Microsoft has been coming on strong these past few months and even years since Satya Nadella took over. Cloud seems to be the number one priority over there with a decisive move towards open source friendliness. No doubt that you have noticed all the rock stars joining the developer advocate team, but also the Deis acquisition and of course Brendan Burns leading their container efforts.

So it is about time that I look at Azure and try their new services, mostly still in preview, around containers. As always this will be a step by step walkthrough in the hope that 5 minutes reading this blog will save you 50 minutes figuring out yourselves. Who does not like a x10 return ?

First get your free account and do not get angry because you have to enter your credit card even though they won’t charge it during your free trial period and $200 free credit.

Then jump on the terminal:

Install the `az` CLI

Of course you can do things via the dashboard , but I am a CLI person so I use the terminal. Sadly I sold my soul to OSX so I got the CLI via brew like so:

If you are not on OSX check the docs. Then you can get your CLI to login using az login and get the redirection to your browser and sign-in.

That’s it. If you manage to get this login to work you are off to the races.

The default behavior of the CLI is to output raw json, to get a table output by default just run az configure which is an interactive configuration prompt.

Azure Container Instances (ACI)

Container Instances is the easiest service to check, it allows you to deploy containers quickly. Strangely, on the dashboard you access ACI through the marketplace (ping @ralph_squillace), just move on…

Follow the quick start

All your resources need to belong to a resource group so you need to create one:

Then launch your container:

Note that the bitnami/nginx container is a non-root container that serves on a non privileged port.

The CLI gives you standard commands to list, get the logs and delete containers.

To get the logs of the container:

And of course do not forget to delete it:

This is pretty straightforward, it allows you to deploy a single container and get a public IP to reach whatever application is running. In Kubernetes land this is pretty close to kubectl run .

AKS

AKS is the Azure Kubernetes Engine. While you can deploy Kubernetes using the Azure Container Service (ACS), AKS is a managed k8s service that competes directly with Google GKE.

ACS can technically allow you to create a Swarm, Mesos or k8s cluster. But it seems that the branding is changing a bit here or I missed an announcement.

Check the official AKS walkthrough or follow the steps below:

If you have never used Azure you will need to register a few providers namely for Compute, Network and Storage. The three steps below will do it but note that it may take a few minutes for the registration to complete.

Once the providers are registered you are ready to create your Kubernetes cluster:

This is very similar to the GKE CLI even if more oriented towards optional arguments and not a sentence based CLI.

Once the cluster is created, get the credentials for it and you can then use your familiar Kubernetes kubectl

Be a bit patient, you will be able to reach the master before the nodes are actually up and ready. Ultimately:

From there you are on Kubernetes. If you don’t know Kubernetes, then take 2 hours and 15 minutes and watch my screencast :) _shameless plug_

Stay tune, next week I will pick back up and show you how to install kubeapps on AKS. Spoiler, grab the release and:

Bitnami Perspectives

Loved by devs, Trusted by ops: Bitnami makes easy to use…

Sebastien Goasguen

Written by

@sebgoa, Kubernetes lover, R&D enthusiast, co-Founder of TriggerMesh, O’Reilly author, sports fan, husband and father…

Bitnami Perspectives

Loved by devs, Trusted by ops: Bitnami makes easy to use cloud images, containers, and VMs that work on any platform.

Sebastien Goasguen

Written by

@sebgoa, Kubernetes lover, R&D enthusiast, co-Founder of TriggerMesh, O’Reilly author, sports fan, husband and father…

Bitnami Perspectives

Loved by devs, Trusted by ops: Bitnami makes easy to use cloud images, containers, and VMs that work on any platform.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store