Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.55 KB

create-cluster-using-arm-template.md

File metadata and controls

35 lines (22 loc) · 1.55 KB
title description ms.service ms.custom ms.topic ms.date
Export cluster ARM template
Learn how to Create cluster ARM template using Azure CLI
hdinsight-aks
devx-track-arm-template, devx-track-azurecli
how-to
02/12/2024

Export cluster ARM template - Azure CLI

[!INCLUDE feature-in-preview]

This article describes how to generate an ARM template using Azure CLI.

[!INCLUDE azure-cli-prepare-your-environment.md]

  • An operational HDInsight on AKS cluster.

Steps to generate ARM template for the cluster

  1. Run the following command.

    
    az group export --resource-group "{cluster-rg}" --resource-ids "{resource_id}" --include-parameter-default-value --include-comments
    
    # cluster-rg = Resource group of your cluster
    # resource_id = Cluster resource id. You can get it from "JSON view" in the overview blade of your cluster in the Azure portal.
    

    :::image type="content" source="./media/create-cluster-using-arm-template/command-execution-output.png" alt-text="Screenshot showing output of the command executed to get the ARM template of the HDInsight on AKS Cluster." border="true" lightbox="./media/create-cluster-using-arm-template/command-execution-output.png":::

Now, your cluster ARM template is ready. You can update the properties of the cluster and finally deploy the ARM template to refresh the resources. Learn how to deploy an ARM template.