Install DC/OS on Azure

Install DC/OS on Azure

This document explains how to install DC/OS 1.8 through the Azure Marketplace. Alternatively, you can install DC/OS 1.8 using an Azure Resource Manager template provided separately here.

To get support on Azure Marketplace-related questions, join the Azure Marketplace Slack community.

System requirements


  • A standard D2 Microsoft Azure virtual machine
  • A minimum of five Mesos agents

Selecting fewer VMs will likely cause certain resource-intensive services such as distributed datastores not to work properly, ranging from installation issues to operational limitations.


Install DC/OS

Important: REX-ray does not support Azure.

Step 1: Deploying the template

To deploy DC/OS using the Azure Marketplace, first go to, click on + New and enter DC/OS:

Searching for DC/OS template

In the search result page, pick DC/OS on Azure:

Selecting DC/OS template

In the template, click on Create:

Creating deployment using DC/OS template

Complete the installation wizard steps. Note: you are only required to fill in the Basic section, however it is strongly recommended that you create a new resource group (simplifies installation and cluster teardown). With the Enable OAuth authentication you can influence the security settings. By default, no user authentication is performed by DC/OS, and to enable OAuth-based authentication for your cluster, set it to true:

Filling in DC/OS template

After you’ve clicked on the final Create button you should see something like the screen below. The deployment process should take about 10 minutes:

Deploying DC/OS template

After the deployment succeeded, click on the resource group (mydcoscluster here) and you should get to the resource group. If you don’t see it, try searching for your resource group and if the deployment failed, delete the deployment and the resource group and start again:

DC/OS template successfully deployed

Congratulations, you have now deployed DC/OS by using an Azure Resource Manager template! Next we will show how to access the cluster.

Step 2: Accessing DC/OS

Because of security considerations, the DC/OS cluster in Azure is locked down by default. You must use an ssh tunnel to access the DC/OS Dashboard.

First, look up MASTERFQDN in the outputs of the deployment. To find that, click on the link under Last deployment (which is 10/5/2016 (Succeeded) here) and you should see something like this:

Deployment history

Click on the latest deployment (here mesosphere.dcosdcos-20160905094201) and copy the value of MASTERFQDN in the Outputs section (in this case its

Deployment output

Use the value of MASTERFQDN you found in the Outputs section in the previous step and paste it in the following command:

$ ssh azureuser@$MASTERFQDN -p 2200 -L 8000:localhost:80

For example, in my case:

$ export
$ ssh -p2200 azureuser@$MASTERFQDN -L 8000:localhost:80
The authenticity of host '[]:2200 ([]:2200)' can't be established.
ECDSA key fingerprint is SHA256:RD7nTZ4tzrKF/g4pvWvMFQk5GnCB6JqPA2MYycIoGGM.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[]:2200,[]:2200' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-28-generic x86_64)

 * Documentation:

  Get cloud support with Ubuntu Advantage Cloud Guest:

0 packages can be updated.
0 updates are security updates.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.


Visit http://localhost:8000 on your local machine to access the DC/OS Dashboard. Note that if you set Enable OAuth authentication to true you’ll have to first authenticate using one of the three default OAuth providers (Google, GitHub, Microsoft):


Now you should see something like the following as a result:

DC/OS Dashboard


Some caveats around SSH access:

  • For connections to http://localhost:8000 to work, the SSH command must be run on your local machine, and not inside a Virtual Machine.
  • In the example above, port 8000 is assumed to be available on your local machine.
  • The SSH commands shown only work on Mac or Linux. For Windows use Putty with a similar port-forwarding configuration, see also How to Use SSH with Windows on Azure.
  • If you want to learn more about SSH key generation check out this GitHub tutorial.

The DC/OS UI will not show the correct IP address or CLI install commands when connected by using an SSH tunnel.

The following commands can be used to run the DC/OS CLI directly from within the cluster, using the DC/OS Master node:

# Connect to master node with ssh
$ ssh -p2200 azureuser@MASTERFQDN -L 8000:localhost:80

# Install CLI
azureuser@dcos-master-01234567-0:~$ curl -fLsS --retry 20 -Y 100000 -y 60 -o dcos &&
 sudo mv dcos /usr/local/bin &&
 sudo chmod +x /usr/local/bin/dcos &&
 dcos config set core.dcos_url http://localhost

Tear Down the DC/OS cluster

If you’ve created a new resource group in the deployment step it is straightforward to tear down the cluster and release all of the resources. Just delete the resource group as follows:

Tear down DC/OS cluster

If you have deployed the cluster into an existing resource group, you’ll need to identify all resources that belong to the DC/OS cluster and manually delete them.

Next steps