Category Archives: Azure Container Services

WHAT IS WINDOWS AZURE

What Is Windows Azure

Microsoft Azure, previously known as Windows Azure, is Microsoft’s public cloud computing platform. It provides a range of cloud services, including those for compute, analytics, storage, and networking. Users can top choice from these services to develop and scale new applications, or run existing applications, in the public cloud.

The Windows Azure platform is deliberated as platform as a service, which is an authoritative component of a cloud computing platform. It consists of various on-demand services hosted in Microsoft’s data centres and is commoditized through three product brands.

The services and apps developed using the Azure platform run on the Windows Azure operating system, which provides a runtime environment for Web applications along with a wide set of services that facilitate the building, hosting, and management of applications without requiring maintenance to expensive onsite resources.

Windows Azure is designed to support both Microsoft and non-Microsoft platforms. The three main components that constitute Windows Azure are:

  • Compute layer
  • Storage layer
  • Fabric layer

Compute Layer: These services provide virtual machines, containers, batch processing, and remote application access.

Storage Layer: This category includes Database as a service offering for SQL and NoSQL, as-well-as unstructured and cached cloud storage.

Fabric Layer: It is a Platform as a Service (PaaS) offering designed to enable the development, deployment, and management of extremely scalable and customizable applications for the Microsoft Azure cloud platform.

The complete list of Azure services is constantly subject to change. The users should view the Microsoft Azure website for recent updates.

Some organizations use Azure for data backup and disaster recovery. In addition to that, some organizations use Azure as a substitute to their own data centre. Rather than capitalizing in local servers and storage, these organizations choose to run some, or all, of their industry applications in Azure.

Windows Azure also includes an automated service management feature that enables the upgrading of applications without affecting their performance. Windows Azure is aimed to support a number of platforms and programming languages. Some of the languages supported are extensible mark-up language (XML), representational state transfer (REST), Ruby, Eclipse, Python, and PHP.

As with other public cloud providers, Azure mainly uses a pay-as-you-go pricing model that charges based on usage. However, a single application may use multiple Azure services, so users should do analysis and manage usage to reduce costs.

DEPLOY A FULL DOCKER SWARM CLUSTER ON AZURE CONTAINER SERVICES

Deploy a full Docker Swarm cluster on Azure Container Services

Microsoft has announced the availability of Azure Container Services that allows deploying in an easy way in a cluster of virtual machines that can host containers.

Azure Container Services supports two orchestrators for the clusters:

Docker Swarm: It uses the native Docker stack so that a user can directly use Docker commands to deploy Docker containers.

DC/OS: It is a data centre operating system that can run containers in different formats including Docker images. DC/OS is also used to deploy and run on well-known distributed systems such as HDFS, Spark, Kafka, and Cassandra is used to scale by organizations like AirBnb, Twitter, and Netflix.

In this article, we will explain how you can use Azure Container Services to deploy a Docker Swarm based cluster in Azure.

GENERATE AN SSH RSA KEY

Microsoft is working on the implementation of a container technology for the next version of windows server, but Azure Container Service supports only Linux workloads currently, so the user needs an SSH key to connect the cluster once it is created. There are several ways to create a new key, depending on the system the user is running on.

Firstly, the bash scripts are open source and hosted on Github:

full_Docker_Swarm_cluster_on_Azure_Container_Services

https://github.com/avranju/azure-swarm

The two main scripts are:

swarm-up.sh – This brings the cluster for the user.

swarm-down.sh – This breaks down the cluster which is created by the user using swarm-up.sh.

Create a new Docker Swarm cluster on Azure Container Service

A user can create a new Azure Container Service instance using the Azure portal, Azure CLI or PowerShell. In this article, we will focus on Azure Portal.

Go to http://portal.azure.com and log in with your Azure account and click the “+” new button and search for the “container”.

Click on the Azure Container Service in the result view.

Azure_Container_Service

Click on the Create button. An assistance will open to help you to configure your new cluster.

Firstly, the user has to enter the name of the user, that will be the administrator of the cluster and pass the SSH public key. The user has to choose the Azure subscription, a resource group, and the location where the cluster will be deployed.

  • Click on OK to continue with the step-2. In this step, a user can choose between two orchestrators: DC/OS or Swarm.
  • In the next step, the user has to save the settings for Azure Container Service such as number of masters, nodes, the virtual machine size to use and a DNX prefix which will be used in each source that will be created.
  • Click on OK and wait for the final validation.
  • In the last section, click on Create button. Depending on the number of masters/agents you have asked for, the cluster creation may take a little time.

Once the deployment is completed, a user can access their new Azure Container Service.

Connect to the Swarm master virtual machine:

Connecting to the Swarm master is really simple, by using the SSH command in the output produced by the deployment.

If you are using Linux or Mac, open a terminal. If you are using Windows, then you can continue to use Git Bash that provides an SSH client.

The user will be asked to enter the passphrase and then you are connected to the Swarm master.

Swarm_master_virtual_machine

Once connected, you can use the Docker command to work with your Swarm cluster. Your Cluster is ready now, you can deploy your first Docker container.

You have now a fully functional Docker Swarm cluster based on Azure Container Service. As you can see the above steps, it is really simple to create a cluster in Microsoft Azure.