Create Hadoop clusters in HDInsight by using Resource Manager templates

In this article, you learn several ways to create Azure HDInsight clusters using Azure Resource Manager templates. For more information, see Deploy an application with Azure Resource Manager template. To learn about other cluster creation tools and features, click the tab selector on the top of this page or see Cluster creation methods.

Prerequisites

Warning

Billing for HDInsight clusters is prorated per minute, whether you are using them or not. Be sure to delete your cluster after you have finished using it. For more information, see How to delete an HDInsight cluster.

To follow the instructions in this article, you need:

Resource Manager templates

A Resource Manager template makes it easy to create the following resoruces for your application in a single, coordinated operation:

  • HDInsight clusters and their dependent resources (such as the default storage account)
  • Other resources (such as Azure SQL Database to use Apache Sqoop)

In the template, you define the resources that are needed for the application. You also specify deployment parameters to input values for different environments. The template consists of JSON and expressions that you use to construct values for your deployment.

You can find HDInsight template samples at Azure Quickstart Templates. Use cross-platform Visual Studio Code with the Resource Manager extension or a text editor to save the template into a file on your workstation.

For more information about Resource Manager templates, see the following articles:

Generate templates

Resource Manager enables you to export a Resource Manager template from existing resources in your subscription using different tools. You can use that generated template to learn about the template syntax or to automate the redeployment of your solution as needed.

Deploy using the portal

You can deploy a Resource Manager template using the Azure portal. For more information, see Deploy resources from custom template.

Deploy using PowerShell

You can deploy a Resource Manager template using Azure PowerShell. For more information, see Deploy resources with Resource Manager templates and Azure PowerShell and Deploy private Resource Manager template with SAS token and Azure PowerShell.

Deploy using CLI

You can deploy a Resource Manager template using Azure CLI. For more information, see Deploy resources with Resource Manager templates and Azure CLI and Deploy private Resource Manager template with SAS token and Azure CLI.

Deploy using the REST API

You can deploy a Resource Manager template using REST API. For more information, see Deploy resources with Resource Manager templates and Resource Manager REST API.

Deploy with Visual Studio

Use Visual Studio to create a resource group project and deploy it to Azure through the user interface. You select the type of resources to include in your project. Those resources are automatically added to the Resource Manager template. The project also provides a PowerShell script to deploy the template.

For an introduction to using Visual Studio with resource groups, see Creating and deploying Azure resource groups through Visual Studio.

Troubleshoot

If you run into issues with creating HDInsight clusters, see access control requirements.

Next steps

In this article, you have learned several ways to create an HDInsight cluster. To learn more, see the following articles: