Advertisement
RJSN

Template

Jul 28th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 4.35 KB | None | 0 0
  1. {
  2.     "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
  3.     "contentVersion": "0.9.0.0",
  4.     "parameters": {
  5.         "clusterName": {
  6.             "type": "string",
  7.             "metadata": {
  8.                 "description": "The name of the HDInsight cluster to create."
  9.             }
  10.         }
  11.     },
  12.     "resources": [
  13.         {
  14.             "apiVersion": "2015-03-01-preview",
  15.             "name": "AZU-HCL-HDINSIGHT-PRD",
  16.             "type": "Microsoft.HDInsight/clusters",
  17.             "location": "westeurope",
  18.             "dependsOn": [
  19.                 "Microsoft.Storage/storageAccounts/azustahdinsightprd"
  20.             ],
  21.             "properties": {
  22.                 "clusterVersion": "3.4",
  23.                 "osType": "Linux",
  24.                 "tier": "standard",
  25.                 "clusterDefinition": {
  26.                     "kind": "spark",
  27.                     "configurations": {
  28.                         "gateway": {
  29.                             "restAuthCredential.isEnabled": true,
  30.                             "restAuthCredential.username": "Admin",
  31.                             "restAuthCredential.password": "qAGb.B9zAX"
  32.                         },
  33.                         "core-site": {
  34.                             "fs.defaultFS": "wasb://azuconhdinsightprd@azustahdinsightprd.blob.core.windows.net",
  35.                             "fs.azure.account.key.azustahdinsightprd.blob.core.windows.net": "[listKeys('Microsoft.Storage/storageAccounts/azustahdinsightprd', '2015-05-01-preview').key1]"
  36.                         }
  37.                     }
  38.                 },
  39.                 "computeProfile": {
  40.                     "roles": [
  41.                         {
  42.                             "name": "headnode",
  43.                             "minInstanceCount": 1,
  44.                             "targetInstanceCount": 2,
  45.                             "hardwareProfile": {
  46.                                 "vmSize": "Standard_D4_V2"
  47.                             },
  48.                             "osProfile": {
  49.                                 "linuxOperatingSystemProfile": {
  50.                                     "username": "SSHAdmin",
  51.                                     "password": ",Wg&XWwOX5"
  52.                                 }
  53.                             },
  54.                             "virtualNetworkProfile": {
  55.                                 "id": "/subscriptions/<subscriptionid>/resourceGroups/AZU-RSG-HDINSIGHT-PRD/providers/Microsoft.Network/virtualNetworks/AZU-VNW-HDINSIGHT-PRD",
  56.                                 "subnet": "/subscriptions/<subscriptionid>/resourceGroups/AZU-RSG-HDINSIGHT-PRD/providers/Microsoft.Network/virtualNetworks/AZU-VNW-HDINSIGHT-PRD/subnets/AZU-NET-HDINSIGHT-PRD"
  57.                             },
  58.                             "scriptActions": []
  59.                         },
  60.                         {
  61.                             "name": "workernode",
  62.                             "minInstanceCount": 1,
  63.                             "targetInstanceCount": 4,
  64.                             "hardwareProfile": {
  65.                                 "vmSize": "Standard_D4_V2"
  66.                             },
  67.                             "osProfile": {
  68.                                 "linuxOperatingSystemProfile": {
  69.                                     "username": "SSHAdmin",
  70.                                     "password": ",Wg&XWwOX5"
  71.                                 }
  72.                             },
  73.                             "virtualNetworkProfile": {
  74.                                 "id": "/subscriptions/<subscriptionid>/resourceGroups/AZU-RSG-HDINSIGHT-PRD/providers/Microsoft.Network/virtualNetworks/AZU-VNW-HDINSIGHT-PRD",
  75.                                 "subnet": "/subscriptions/<subscriptionid>/resourceGroups/AZU-RSG-HDINSIGHT-PRD/providers/Microsoft.Network/virtualNetworks/AZU-VNW-HDINSIGHT-PRD/subnets/AZU-NET-HDINSIGHT-PRD"
  76.                             },
  77.                             "scriptActions": []
  78.                         }
  79.                     ]
  80.                 }
  81.             }
  82.         },
  83.         {
  84.             "type": "Microsoft.Storage/storageAccounts",
  85.             "name": "azustahdinsightprd",
  86.             "apiVersion": "2015-05-01-preview",
  87.             "location": "westeurope",
  88.             "properties": {
  89.                 "accountType": "Standard_LRS"
  90.             }
  91.         }
  92.     ]
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement