Microsoft.HDInsight 叢集 2018-06-01-preview

Bicep 資源定義

叢集資源類型可以部署到:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.HDInsight/clusters 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.HDInsight/clusters@2018-06-01-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
    userAssignedIdentities: {}
  }
  properties: {
    clusterDefinition: {
      blueprint: 'string'
      componentVersion: {}
      configurations: any()
      kind: 'string'
    }
    clusterVersion: 'string'
    computeIsolationProperties: {
      enableComputeIsolation: bool
      hostSku: 'string'
    }
    computeProfile: {
      roles: [
        {
          autoscale: {
            capacity: {
              maxInstanceCount: int
              minInstanceCount: int
            }
            recurrence: {
              schedule: [
                {
                  days: [
                    'string'
                  ]
                  timeAndCapacity: {
                    maxInstanceCount: int
                    minInstanceCount: int
                    time: 'string'
                  }
                }
              ]
              timeZone: 'string'
            }
          }
          dataDisksGroups: [
            {
              disksPerNode: int
            }
          ]
          encryptDataDisks: bool
          hardwareProfile: {
            vmSize: 'string'
          }
          minInstanceCount: int
          name: 'string'
          osProfile: {
            linuxOperatingSystemProfile: {
              password: 'string'
              sshProfile: {
                publicKeys: [
                  {
                    certificateData: 'string'
                  }
                ]
              }
              username: 'string'
            }
          }
          scriptActions: [
            {
              name: 'string'
              parameters: 'string'
              uri: 'string'
            }
          ]
          targetInstanceCount: int
          virtualNetworkProfile: {
            id: 'string'
            subnet: 'string'
          }
          VMGroupName: 'string'
        }
      ]
    }
    diskEncryptionProperties: {
      encryptionAlgorithm: 'string'
      encryptionAtHost: bool
      keyName: 'string'
      keyVersion: 'string'
      msiResourceId: 'string'
      vaultUri: 'string'
    }
    encryptionInTransitProperties: {
      isEncryptionInTransitEnabled: bool
    }
    kafkaRestProperties: {
      clientGroupInfo: {
        groupId: 'string'
        groupName: 'string'
      }
      configurationOverride: {}
    }
    minSupportedTlsVersion: 'string'
    networkProperties: {
      privateLink: 'string'
      resourceProviderConnection: 'string'
    }
    osType: 'string'
    securityProfile: {
      aaddsResourceId: 'string'
      clusterUsersGroupDNs: [
        'string'
      ]
      directoryType: 'ActiveDirectory'
      domain: 'string'
      domainUsername: 'string'
      domainUserPassword: 'string'
      ldapsUrls: [
        'string'
      ]
      msiResourceId: 'string'
      organizationalUnitDN: 'string'
    }
    storageProfile: {
      storageaccounts: [
        {
          container: 'string'
          fileshare: 'string'
          fileSystem: 'string'
          isDefault: bool
          key: 'string'
          msiResourceId: 'string'
          name: 'string'
          resourceId: 'string'
          saskey: 'string'
        }
      ]
    }
    tier: 'string'
  }
}

屬性值

clusters

名稱 描述
NAME 資源名稱 需要字串 ()

字元限制:3-59

合法字元:
英數字元和連字號

以字母或數字開頭及結尾。

資源名稱在整個 Azure 中必須是唯一的。
location 叢集的位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標籤
身分識別 如果已設定,則為叢集的身分識別。 ClusterIdentity
properties 叢集建立參數。 ClusterCreatePropertiesOrClusterGetProperties

ClusterIdentity

名稱 描述
類型 用於叢集的身分識別類型。 「SystemAssigned、UserAssigned」類型同時包含隱含建立的身分識別,和一組使用者指派的身分識別。 'None'
'SystemAssigned'
'SystemAssigned, UserAssigned'
'UserAssigned'
userAssignedIdentities 與叢集相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 物件 (object)

ClusterCreatePropertiesOrClusterGetProperties

名稱 描述
clusterDefinition 叢集定義。 ClusterDefinition
clusterVersion 叢集的版本。 字串
computeIsolationProperties 計算隔離屬性。 ComputeIsolationProperties
computeProfile 計算配置檔。 ComputeProfile
diskEncryptionProperties 磁碟加密屬性。 DiskEncryptionProperties
encryptionInTransitProperties 傳輸中加密屬性。 EncryptionInTransitProperties
kafkaRestProperties 叢集 kafka rest Proxy 組態。 KafkaRestProperties
minSupportedTlsVersion 最低支援的 tls 版本。 字串
networkProperties 網路屬性。 NetworkProperties
osType 作業系統的類型。 'Linux'
'Windows'
securityProfile 安全性配置檔。 SecurityProfile
storageProfile 記憶體配置檔。 StorageProfile
tier 叢集層。 'Premium'
'Standard'

ClusterDefinition

名稱 描述
藍圖 藍圖的連結。 字串
componentVersion 叢集中不同服務的版本。 物件 (object)
組態 叢集組態。 針對 Bicep,您可以使用 任何 () 函式。
kind 叢集的類型。 字串

ComputeIsolationProperties

名稱 描述
enableComputeIsolation 旗標指出是否啟用計算隔離。 bool
hostSku 主機 SKU。 字串

ComputeProfile

名稱 描述
角色 叢集中的角色清單。 Role[]

角色

名稱 描述
自動調整 自動調整組態。 自動調整
dataDisksGroups 角色的數據磁碟群組。 DataDisksGroups[]
encryptDataDisks 指出是否加密數據磁碟。 bool
hardwareProfile 硬體配置檔。 HardwareProfile
minInstanceCount 叢集的最小實例計數。 int
NAME 角色的名稱。 字串
osProfile 操作系統配置檔。 OsProfile
scriptActions 角色上的腳本動作清單。 ScriptAction[]
targetInstanceCount 叢集的實例計數。 int
virtualNetworkProfile 虛擬網路配置檔。 VirtualNetworkProfile
VMGroupName 虛擬機群組的名稱。 字串

自動擴縮

名稱 描述
處理能力 負載型自動調整的參數 AutoscaleCapacity
週期 排程型自動調整的參數 AutoscaleRecurrence

AutoscaleCapacity

名稱 描述
maxInstanceCount 叢集的實例計數上限 int
minInstanceCount 叢集的最小實例計數 int

AutoscaleRecurrence

名稱 描述
schedule 以排程為基礎的自動調整規則陣列 AutoscaleSchedule[]
timeZone 自動調整排程時間的時區 字串

AutoscaleSchedule

名稱 描述
days 排程型自動調整規則的星期幾 包含任何項目的字串數組:
'Friday'
'Monday'
'Saturday'
'Sunday'
'Thursday'
'Tuesday'
'Wednesday'
timeAndCapacity 排程型自動調整規則的時間和容量 AutoscaleTimeAndCapacity

AutoscaleTimeAndCapacity

名稱 描述
maxInstanceCount 叢集的實例計數上限 int
minInstanceCount 叢集的最小實例計數 int
time 格式為 xx:xx 的 24 小時時間 字串

DataDisksGroups

名稱 描述
disksPerNode 每個節點的磁碟數目。 int

HardwareProfile

名稱 描述
vmSize VM 的大小 字串

OsProfile

名稱 描述
linuxOperatingSystemProfile Linux OS 配置檔。 LinuxOperatingSystemProfile

LinuxOperatingSystemProfile

名稱 描述
password 密碼。 字串
sshProfile SSH 設定檔。 SshProfile
使用者名稱 使用者名稱。 字串

SshProfile

名稱 描述
publicKeys SSH 公鑰清單。 SshPublicKey[]

SshPublicKey

名稱 描述
certificateData SSH 的憑證。 字串

ScriptAction

名稱 描述
NAME 腳本動作的名稱。 需要字串 ()
參數 提供的腳本參數。 需要字串 ()
uri 腳本的 URI。 需要字串 ()

VirtualNetworkProfile

名稱 描述
id 虛擬網路的標識碼。 字串
子網路 子網路的名稱。 字串

DiskEncryptionProperties

名稱 描述
encryptionAlgorithm 加密的演算法識別碼,預設 RSA-OAEP。 'RSA-OAEP'
'RSA-OAEP-256'
'RSA1_5'
encryptionAtHost 指出是否啟用資源磁碟加密。 bool
keyName 用於啟用磁碟加密的金鑰名稱。 字串
keyVersion 用於啟用磁碟加密的特定金鑰版本。 字串
msiResourceId 用來存取金鑰保存庫之受控識別的資源識別碼。 字串
vaultUri 客戶金鑰所在的基底金鑰保存庫 URI,例如 https://myvault.vault.azure.net 字串

EncryptionInTransitProperties

名稱 描述
isEncryptionInTransitEnabled 指出是否在傳輸中加密叢集節點間通訊。 bool

KafkaRestProperties

名稱 描述
clientGroupInfo AAD 安全組的資訊。 ClientGroupInfo
configurationOverride 需要覆寫的組態。 物件 (object)

ClientGroupInfo

名稱 描述
groupId AAD 安全組標識碼。 字串
groupName AAD 安全組名稱。 字串

NetworkProperties

名稱 描述
privateLink 指出是否啟用私人連結。 'Disabled'
'Enabled'
resourceProviderConnection 資源提供者連線的方向。 'Inbound'
'Outbound'

SecurityProfile

名稱 描述
aaddsResourceId 使用者 Azure Active Directory 網域 服務的資源識別碼。 字串
clusterUsersGroupDN 選擇性。 叢集使用者群組的辨別名稱 string[]
directoryType 目錄類型。 'ActiveDirectory'
網域 組織的 Active Directory 網域。 字串
domainUsername 將具有叢集管理員許可權的網域用戶帳戶。 字串
domainUserPassword 網域系統管理員密碼。 字串
ldapsUrls 要與 Active Directory 通訊的 LDAPS 通訊協定 URL。 string[]
msiResourceId 使用者指派的身分識別具有讀取和建立使用者 AADDS 中叢集相關成品的許可權。 字串
organizationUnitDN Active Directory 內要放置叢集和服務帳戶的組織單位。 字串

StorageProfile

名稱 描述
storageaccounts 叢集中的記憶體帳戶清單。 StorageAccount[]

StorageAccount

名稱 描述
容器 記憶體帳戶中的容器,只能針對 WASB 記憶體帳戶指定。 字串
fileshare 檔案共享名稱。 字串
fileSystem 文件系統,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
isDefault 記憶體帳戶是否為預設記憶體帳戶。 bool
索引鍵 儲存體帳戶存取金鑰。 字串
msiResourceId 允許存取記憶體帳戶的受控識別 (MSI) ,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
NAME 儲存體帳戶的名稱。 字串
resourceId 記憶體帳戶的資源標識碼,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
saskey 共用存取簽章金鑰。 字串

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
建立執行 Apache Spark 1.4.1 的 HDInsight 叢集

部署至 Azure
建立執行 Apache Spark 1.4.1 的 HDInsight Linux 叢集。
建立執行 ADAM 的 HDInsight 叢集

部署至 Azure
建立執行 Genomics 分析平臺 ADAM 的 HDInsight Linux 叢集
建立 HDInsight Linux 叢集並執行腳本動作

部署至 Azure
範本會在虛擬網路中建立 HDInsight Linux 叢集,然後在每個節點上執行自定義腳本動作,並設定環境 var。
已啟用以負載為基礎的自動調整的 HDInsight

部署至 Azure
此範本可讓您建立已啟用負載型自動調整的 HDInsight Spark 叢集。
已啟用排程型自動調整的 HDInsight

部署至 Azure
此範本可讓您建立已啟用排程型自動調整的 HDInsight Spark 叢集。
在 VNET 中使用自訂 Ambari + Hive 中繼存放區 DB 的 HDInsight

部署至 Azure
此範本可讓您在現有的虛擬網路中建立 HDInsight 叢集,此叢集具有新的 SQL DB,可同時作為自定義 Ambari DB 和 Hive 中繼存放區。 您必須有現有的 SQL Sever、記憶體帳戶和 VNET。
在新的 Data Lake Store 和記憶體上部署 HDInsight

部署至 Azure
此範本可讓您使用新的 Data Lake Store 和記憶體帳戶來部署新的 Linux HDInsight 叢集。
在 HDInsight 中部署具有增強式寫入的 Linux HBase 叢集

部署至 Azure
此範本可讓您在 Azure HDInsight 中建立具有增強寫入功能的 Linux 型 HBase 叢集。
在 HDInsight 中部署以 Linux 為基礎的 HBase 叢集

部署至 Azure
此範本可讓您在 Azure HDInsight 中建立以 Linux 為基礎的 HBase 叢集。
在 VNet 內部署 VNet 和 HBase 叢集

部署至 Azure
此範本可讓您建立在 VNet 內執行 Linux 的 Azure VNet 和 HDInsight HBase 叢集。
在 VNet 內部署 Azure VNet 和兩個 HBase 叢集

部署至 Azure
此範本可讓您在 VNet 內設定具有兩個 HBase 叢集的 HBase 環境,以設定 HBase 複寫。
在一個區域中部署具有兩個 VNet 的 HBase 複寫

部署至 Azure
此範本可讓您在相同區域中的兩個 VNet 內設定具有兩個 HBase 叢集的 HBase 環境,以設定 HBase 複寫。
在 HDInsight 中部署 Interative Hive 叢集

部署至 Azure
此範本可讓您在 HDInsight 中建立 INTERATIVE Hive (LLAP) 叢集,以及相依的 Azure 記憶體帳戶。 叢集的 SSH 驗證方法是使用者名稱和密碼。 如需使用 SSH 公鑰驗證的範本,請參閱 /samples/azure/azure/azure-quickstart-templates/hdinsight-linux-ssh-publickey/
在虛擬網路中的 HDInsight 上部署 Kafka

部署至 Azure
此範本可讓您在虛擬網路中建立 Azure 虛擬網路 和 HDInsight 叢集上的 Kafka。 叢集的 SSH 驗證方法是使用者名稱和密碼。 如需使用 SSH 公鑰驗證的範本,請參閱 /samples/azure/azure/azure-quickstart-templates/hdinsight-linux-ssh-publickey/
部署 HDInsight 叢集 + Confluent 架構登錄節點

部署至 Azure
此範本可讓您使用架構登錄邊緣節點建立執行 Linux 的 HDInsight 叢集。 如需詳細資訊,請參閱 /azure/hdinsight/hdinsight-apps-use-edge-node
使用記憶體和 SSH 密碼部署 HDInsight 叢集

部署至 Azure
此範本可讓您在 HDInsight 和相依的 Azure 記憶體帳戶中建立以 Linux 為基礎的 Hadoop 叢集。 叢集的 SSH 驗證方法是使用者名稱和密碼。 如需使用 SSH 公鑰驗證的範本,請參閱 /samples/azure/azure/azure-quickstart-templates/hdinsight-linux-ssh-publickey/
在 Linux 上部署 HDInsight (w/ Azure 記憶體、SSH 金鑰)

部署至 Azure
此範本可讓您建立執行 Linux 的 HDInsight 叢集。 此範本也會建立 Azure 記憶體帳戶。 叢集的 SSH 驗證方法是用戶名稱/公鑰。
現有Hive中繼存放區、SSH、vnet) 上的 HDInsight (Linux

部署至 Azure
此範本可讓您在現有的 Hive 中繼存放區和虛擬網路上建立執行 Linux 的 HDInsight 叢集。 叢集的 SSH 驗證方法是使用者名稱/密碼。
使用邊緣節點部署 HDInsight 叢集

部署至 Azure
此範本可讓您建立使用空白邊緣節點執行Linux的HDInsight叢集。 如需詳細資訊,請參閱 /azure/hdinsight/hdinsight-apps-use-edge-node
使用現有的預設記憶體部署 HDInsight 叢集

部署至 Azure
此範本可讓您在 HDInsight 中建立 Hadoop 叢集。 叢集會使用現有的記憶體帳戶作為預設記憶體帳戶。
使用現有的連結記憶體部署 HDInsight 叢集

部署至 Azure
此範本可讓您在 HDInsight 和相依的預設記憶體帳戶中建立 Hadoop 叢集。 此範本也會連結現有的記憶體帳戶。 鏈接的記憶體帳戶通常包含商務數據。
部署 HDInsight 叢集和 SQL 資料庫

部署至 Azure
此範本可讓您建立 HDInsight 叢集和用於測試 Sqoop 的 SQL Database。
具有 TLS 1.2 版或更新版本的 HDInsight 叢集

部署至 Azure
此範本可讓您建立 HDInsight 叢集,並強制執行 TLS 通訊協定至 1.2 或更新版本。
部署 R 伺服器 HDInsight 叢集

部署至 Azure
此範本可讓您使用適用於 HDInsight 的 R Server 建立執行 Linux 的 HDInsight 叢集。 此範本也會建立 Azure 記憶體帳戶。 叢集的 SSH 驗證方法是使用者名稱/密碼。
在 VNet 內部署安全的 VNet 和 HDInsight 叢集

部署至 Azure
此範本可讓您建立在 VNet 內執行 Linux 的 Azure VNet 和 HDInsight Hadoop 叢集。
在 Azure HDInsight 中部署 Spark 叢集

部署至 Azure
此範本可讓您在 Azure HDInsight 中建立 Spark 叢集。
在 VNet 中部署 Spark 叢集

部署至 Azure
此範本可讓您在 VNet 內建立 Azure VNet 和 HDInsight Spark 叢集。

ARM 範本資源定義

叢集資源類型可以部署到:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.HDInsight/clusters 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.HDInsight/clusters",
  "apiVersion": "2018-06-01-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "identity": {
    "type": "string",
    "userAssignedIdentities": {}
  },
  "properties": {
    "clusterDefinition": {
      "blueprint": "string",
      "componentVersion": {},
      "configurations": {},
      "kind": "string"
    },
    "clusterVersion": "string",
    "computeIsolationProperties": {
      "enableComputeIsolation": "bool",
      "hostSku": "string"
    },
    "computeProfile": {
      "roles": [
        {
          "autoscale": {
            "capacity": {
              "maxInstanceCount": "int",
              "minInstanceCount": "int"
            },
            "recurrence": {
              "schedule": [
                {
                  "days": [ "string" ],
                  "timeAndCapacity": {
                    "maxInstanceCount": "int",
                    "minInstanceCount": "int",
                    "time": "string"
                  }
                }
              ],
              "timeZone": "string"
            }
          },
          "dataDisksGroups": [
            {
              "disksPerNode": "int"
            }
          ],
          "encryptDataDisks": "bool",
          "hardwareProfile": {
            "vmSize": "string"
          },
          "minInstanceCount": "int",
          "name": "string",
          "osProfile": {
            "linuxOperatingSystemProfile": {
              "password": "string",
              "sshProfile": {
                "publicKeys": [
                  {
                    "certificateData": "string"
                  }
                ]
              },
              "username": "string"
            }
          },
          "scriptActions": [
            {
              "name": "string",
              "parameters": "string",
              "uri": "string"
            }
          ],
          "targetInstanceCount": "int",
          "virtualNetworkProfile": {
            "id": "string",
            "subnet": "string"
          },
          "VMGroupName": "string"
        }
      ]
    },
    "diskEncryptionProperties": {
      "encryptionAlgorithm": "string",
      "encryptionAtHost": "bool",
      "keyName": "string",
      "keyVersion": "string",
      "msiResourceId": "string",
      "vaultUri": "string"
    },
    "encryptionInTransitProperties": {
      "isEncryptionInTransitEnabled": "bool"
    },
    "kafkaRestProperties": {
      "clientGroupInfo": {
        "groupId": "string",
        "groupName": "string"
      },
      "configurationOverride": {}
    },
    "minSupportedTlsVersion": "string",
    "networkProperties": {
      "privateLink": "string",
      "resourceProviderConnection": "string"
    },
    "osType": "string",
    "securityProfile": {
      "aaddsResourceId": "string",
      "clusterUsersGroupDNs": [ "string" ],
      "directoryType": "ActiveDirectory",
      "domain": "string",
      "domainUsername": "string",
      "domainUserPassword": "string",
      "ldapsUrls": [ "string" ],
      "msiResourceId": "string",
      "organizationalUnitDN": "string"
    },
    "storageProfile": {
      "storageaccounts": [
        {
          "container": "string",
          "fileshare": "string",
          "fileSystem": "string",
          "isDefault": "bool",
          "key": "string",
          "msiResourceId": "string",
          "name": "string",
          "resourceId": "string",
          "saskey": "string"
        }
      ]
    },
    "tier": "string"
  }
}

屬性值

clusters

名稱 描述
類型 資源類型 'Microsoft.HDInsight/clusters'
apiVersion 資源 API 版本 '2018-06-01-preview'
NAME 資源名稱 字串 (必要)

字元限制:3-59

合法字元:
英數字元和連字號

以字母或數字開頭及結尾。

資源名稱在 Azure 中必須是唯一的。
location 叢集的位置。 字串
tags 資源標籤。 標記名稱和值的字典。 請參閱 範本中的標記
身分識別 如果已設定,叢集的身分識別。 ClusterIdentity
properties 叢集建立參數。 ClusterCreatePropertiesOrClusterGetProperties

ClusterIdentity

名稱 描述
類型 用於叢集的身分識別類型。 「SystemAssigned、UserAssigned」類型同時包含隱含建立的身分識別,和一組使用者指派的身分識別。 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 與叢集相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 物件 (object)

ClusterCreatePropertiesOrClusterGetProperties

名稱 描述
clusterDefinition 叢集定義。 ClusterDefinition
clusterVersion 叢集的版本。 字串
computeIsolationProperties 計算隔離屬性。 ComputeIsolationProperties
computeProfile 計算配置檔。 ComputeProfile
diskEncryptionProperties 磁碟加密屬性。 DiskEncryptionProperties
encryptionInTransitProperties 傳輸中加密屬性。 EncryptionInTransitProperties
kafkaRestProperties 叢集 kafka rest Proxy 組態。 KafkaRestProperties
minSupportedTlsVersion 最低支援的 TLS 版本。 字串
networkProperties 網路屬性。 NetworkProperties
osType 作業系統的類型。 'Linux'
'Windows'
securityProfile 安全性配置檔。 SecurityProfile
storageProfile 記憶體配置檔。 StorageProfile
tier 叢集層。 'Premium'
'Standard'

ClusterDefinition

名稱 描述
藍圖 藍圖的連結。 字串
componentVersion 叢集中不同服務的版本。 物件 (object)
組態 叢集組態。
kind 叢集的類型。 字串

ComputeIsolationProperties

名稱 描述
enableComputeIsolation 旗標會指出是否啟用計算隔離。 bool
hostSku 主機 SKU。 字串

ComputeProfile

名稱 描述
角色 叢集中的角色清單。 Role[]

角色

名稱 描述
自動調整 自動調整設定。 自動調整
dataDisksGroups 角色的數據磁碟群組。 DataDisksGroups[]
encryptDataDisks 指出是否加密數據磁碟。 bool
hardwareProfile 硬體配置檔。 HardwareProfile
minInstanceCount 叢集的最小實例計數。 int
NAME 角色的名稱。 字串
osProfile 操作系統配置檔。 OsProfile
scriptActions 角色上的腳本動作清單。 ScriptAction[]
targetInstanceCount 叢集的實例計數。 int
virtualNetworkProfile 虛擬網路配置檔。 VirtualNetworkProfile
VMGroupName 虛擬機群組的名稱。 字串

自動擴縮

名稱 描述
處理能力 負載型自動調整的參數 AutoscaleCapacity
週期 排程型自動調整的參數 AutoscaleRecurrence

AutoscaleCapacity

名稱 描述
maxInstanceCount 叢集的實例計數上限 int
minInstanceCount 叢集的最小實例計數 int

AutoscaleRecurrence

名稱 描述
schedule 以排程為基礎的自動調整規則陣列 AutoscaleSchedule[]
timeZone 自動調整排程時間的時區 字串

AutoscaleSchedule

名稱 描述
days 排程型自動調整規則的星期幾 包含任何項目的字串數組:
'Friday'
'Monday'
'Saturday'
'Sunday'
'Thursday'
'Tuesday'
'Wednesday'
timeAndCapacity 排程型自動調整規則的時間和容量 AutoscaleTimeAndCapacity

AutoscaleTimeAndCapacity

名稱 描述
maxInstanceCount 叢集的實例計數上限 int
minInstanceCount 叢集的最小實例計數 int
time 格式為 xx:xx 的 24 小時時間 字串

DataDisksGroups

名稱 描述
disksPerNode 每個節點的磁碟數目。 int

HardwareProfile

名稱 描述
vmSize VM 的大小 字串

OsProfile

名稱 描述
linuxOperatingSystemProfile Linux OS 配置檔。 LinuxOperatingSystemProfile

LinuxOperatingSystemProfile

名稱 描述
password 密碼。 字串
sshProfile SSH 設定檔。 SshProfile
使用者名稱 使用者名稱。 字串

SshProfile

名稱 描述
publicKeys SSH 公鑰清單。 SshPublicKey[]

SshPublicKey

名稱 描述
certificateData SSH 的憑證。 字串

ScriptAction

名稱 描述
NAME 腳本動作的名稱。 字串 (必要)
參數 提供的腳本參數。 字串 (必要)
uri 腳本的 URI。 字串 (必要)

VirtualNetworkProfile

名稱 描述
id 虛擬網路的標識碼。 字串
子網路 子網路的名稱。 字串

DiskEncryptionProperties

名稱 描述
encryptionAlgorithm 加密的演算法識別碼,預設 RSA-OAEP。 'RSA-OAEP'
'RSA-OAEP-256'
'RSA1_5'
encryptionAtHost 指出是否啟用資源磁碟加密。 bool
keyName 用於啟用磁碟加密的金鑰名稱。 字串
keyVersion 用於啟用磁碟加密的特定金鑰版本。 字串
msiResourceId 用來存取金鑰保存庫的受控識別資源識別碼。 字串
vaultUri 客戶金鑰所在的基底金鑰保存庫 URI,例如 https://myvault.vault.azure.net 字串

EncryptionInTransitProperties

名稱 描述
isEncryptionInTransitEnabled 指出是否在傳輸中加密叢集節點通訊。 bool

KafkaRestProperties

名稱 描述
clientGroupInfo AAD 安全組的資訊。 ClientGroupInfo
configurationOverride 需要覆寫的組態。 物件 (object)

ClientGroupInfo

名稱 描述
groupId AAD 安全組標識碼。 字串
groupName AAD 安全組名稱。 字串

NetworkProperties

名稱 描述
privateLink 指出是否啟用私人連結。 'Disabled'
'Enabled'
resourceProviderConnection 資源提供者連線的方向。 'Inbound'
'輸出'

SecurityProfile

名稱 描述
aaddsResourceId 使用者 Azure Active Directory 網域 服務的資源識別碼。 字串
clusterUsersGroupDN 選擇性。 叢集使用者群組的辨別名稱 string[]
directoryType 目錄類型。 'ActiveDirectory'
網域 組織的 Active Directory 網域。 字串
domainUsername 將具有叢集系統管理員許可權的網域用戶帳戶。 字串
domainUserPassword 網域管理員密碼。 字串
ldapsUrls 要與 Active Directory 通訊的 LDAPS 通訊協定 URL。 string[]
msiResourceId 使用者指派的身分識別,具有在使用者的 AADDS 中讀取和建立叢集相關成品的許可權。 字串
organizationUnitDN Active Directory 內的組織單位,用來放置叢集和服務帳戶。 字串

StorageProfile

名稱 描述
storageaccounts 叢集中的記憶體帳戶清單。 StorageAccount[]

StorageAccount

名稱 描述
容器 記憶體帳戶中的容器,只能針對 WASB 記憶體帳戶指定。 字串
fileshare 檔案共享名稱。 字串
fileSystem 文件系統,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
isDefault 記憶體帳戶是否為預設記憶體帳戶。 bool
索引鍵 儲存體帳戶存取金鑰。 字串
msiResourceId 允許存取記憶體帳戶的受控識別 (MSI) ,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
NAME 儲存體帳戶的名稱。 字串
resourceId 記憶體帳戶的資源標識碼,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
saskey 共用存取簽章金鑰。 字串

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
建立執行 Apache Spark 1.4.1 的 HDInsight 叢集

部署至 Azure
建立執行 Apache Spark 1.4.1 的 HDInsight Linux 叢集。
建立執行 ADAM 的 HDInsight 叢集

部署至 Azure
建立執行 Genomics 分析平臺 ADAM 的 HDInsight Linux 叢集
建立 HDInsight Linux 叢集並執行腳本動作

部署至 Azure
範本會在虛擬網路中建立 HDInsight Linux 叢集,然後在每個節點上執行自定義腳本動作,並設定環境 var。
已啟用以負載為基礎的自動調整的 HDInsight

部署至 Azure
此範本可讓您建立已啟用負載型自動調整的 HDInsight Spark 叢集。
已啟用排程型自動調整的 HDInsight

部署至 Azure
此範本可讓您建立已啟用排程型自動調整的 HDInsight Spark 叢集。
在 VNET 中使用自訂 Ambari + Hive 中繼存放區 DB 的 HDInsight

部署至 Azure
此範本可讓您在現有的虛擬網路中建立 HDInsight 叢集,此叢集具有新的 SQL DB,可同時作為自定義 Ambari DB 和 Hive 中繼存放區。 您必須有現有的 SQL Sever、記憶體帳戶和 VNET。
在新的 Data Lake Store 和記憶體上部署 HDInsight

部署至 Azure
此範本可讓您使用新的 Data Lake Store 和記憶體帳戶來部署新的 Linux HDInsight 叢集。
在 HDInsight 中部署具有增強式寫入的 Linux HBase 叢集

部署至 Azure
此範本可讓您在 Azure HDInsight 中建立具有增強寫入功能的 Linux 型 HBase 叢集。
在 HDInsight 中部署以 Linux 為基礎的 HBase 叢集

部署至 Azure
此範本可讓您在 Azure HDInsight 中建立以 Linux 為基礎的 HBase 叢集。
在 VNet 內部署 VNet 和 HBase 叢集

部署至 Azure
此範本可讓您建立在 VNet 內執行 Linux 的 Azure VNet 和 HDInsight HBase 叢集。
在 VNet 內部署 Azure VNet 和兩個 HBase 叢集

部署至 Azure
此範本可讓您在 VNet 內設定具有兩個 HBase 叢集的 HBase 環境,以設定 HBase 複寫。
在一個區域中部署具有兩個 VNet 的 HBase 複寫

部署至 Azure
此範本可讓您在相同區域中的兩個 VNet 內設定具有兩個 HBase 叢集的 HBase 環境,以設定 HBase 複寫。
在 HDInsight 中部署 Interative Hive 叢集

部署至 Azure
此範本可讓您在 HDInsight 中建立 INTERATIVE Hive (LLAP) 叢集,以及相依的 Azure 記憶體帳戶。 叢集的 SSH 驗證方法是使用者名稱和密碼。 如需使用 SSH 公鑰驗證的範本,請參閱 /samples/azure/azure/azure-quickstart-templates/hdinsight-linux-ssh-publickey/
在虛擬網路中的 HDInsight 上部署 Kafka

部署至 Azure
此範本可讓您在虛擬網路的 HDInsight 叢集上建立 Azure 虛擬網路 和 Kafka。 叢集的 SSH 驗證方法是使用者名稱和密碼。 如需使用 SSH 公鑰驗證的範本,請參閱 /samples/azure/azure/azure-quickstart-templates/hdinsight-linux-ssh-publickey/
部署 HDInsight 叢集 + Confluent 架構登錄節點

部署至 Azure
此範本可讓您使用架構登錄邊緣節點建立執行 Linux 的 HDInsight 叢集。 如需詳細資訊,請參閱 /azure/hdinsight/hdinsight-apps-use-edge-node
使用記憶體和 SSH 密碼部署 HDInsight 叢集

部署至 Azure
此範本可讓您在 HDInsight 和相依的 Azure 記憶體帳戶中建立以 Linux 為基礎的 Hadoop 叢集。 叢集的 SSH 驗證方法是使用者名稱和密碼。 如需使用 SSH 公鑰驗證的範本,請參閱 /samples/azure/azure/azure-quickstart-templates/hdinsight-linux-ssh-publickey/
在 Linux 上部署 HDInsight (w/ Azure 記憶體、SSH 金鑰)

部署至 Azure
此範本可讓您建立執行 Linux 的 HDInsight 叢集。 此範本也會建立 Azure 記憶體帳戶。 叢集的 SSH 驗證方法是用戶名稱/公鑰。
現有Hive中繼存放區、SSH、vnet) 上的 HDInsight (Linux

部署至 Azure
此範本可讓您在現有的 Hive 中繼存放區和虛擬網路上建立執行 Linux 的 HDInsight 叢集。 叢集的 SSH 驗證方法是使用者名稱/密碼。
使用邊緣節點部署 HDInsight 叢集

部署至 Azure
此範本可讓您建立使用空白邊緣節點執行Linux的HDInsight叢集。 如需詳細資訊,請參閱 /azure/hdinsight/hdinsight-apps-use-edge-node
使用現有的預設記憶體部署 HDInsight 叢集

部署至 Azure
此範本可讓您在 HDInsight 中建立 Hadoop 叢集。 叢集會使用現有的記憶體帳戶作為預設記憶體帳戶。
使用現有的連結記憶體部署 HDInsight 叢集

部署至 Azure
此範本可讓您在 HDInsight 和相依的預設記憶體帳戶中建立 Hadoop 叢集。 此範本也會連結現有的記憶體帳戶。 鏈接的記憶體帳戶通常包含商務數據。
部署 HDInsight 叢集和 SQL 資料庫

部署至 Azure
此範本可讓您建立 HDInsight 叢集和用於測試 Sqoop 的 SQL Database。
具有 TLS 1.2 版或更新版本的 HDInsight 叢集

部署至 Azure
此範本可讓您建立 HDInsight 叢集,並強制執行 TLS 通訊協定至 1.2 或更新版本。
部署 R 伺服器 HDInsight 叢集

部署至 Azure
此範本可讓您使用適用於 HDInsight 的 R Server 建立執行 Linux 的 HDInsight 叢集。 此範本也會建立 Azure 記憶體帳戶。 叢集的 SSH 驗證方法是使用者名稱/密碼。
在 VNet 內部署安全的 VNet 和 HDInsight 叢集

部署至 Azure
此範本可讓您建立在 VNet 內執行 Linux 的 Azure VNet 和 HDInsight Hadoop 叢集。
在 Azure HDInsight 中部署 Spark 叢集

部署至 Azure
此範本可讓您在 Azure HDInsight 中建立 Spark 叢集。
在 VNet 中部署 Spark 叢集

部署至 Azure
此範本可讓您在 VNet 內建立 Azure VNet 和 HDInsight Spark 叢集。

Terraform (AzAPI 提供者) 資源定義

叢集資源類型可以部署到:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.HDInsight/clusters 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.HDInsight/clusters@2018-06-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      clusterDefinition = {
        blueprint = "string"
        componentVersion = {}
        kind = "string"
      }
      clusterVersion = "string"
      computeIsolationProperties = {
        enableComputeIsolation = bool
        hostSku = "string"
      }
      computeProfile = {
        roles = [
          {
            autoscale = {
              capacity = {
                maxInstanceCount = int
                minInstanceCount = int
              }
              recurrence = {
                schedule = [
                  {
                    days = [
                      "string"
                    ]
                    timeAndCapacity = {
                      maxInstanceCount = int
                      minInstanceCount = int
                      time = "string"
                    }
                  }
                ]
                timeZone = "string"
              }
            }
            dataDisksGroups = [
              {
                disksPerNode = int
              }
            ]
            encryptDataDisks = bool
            hardwareProfile = {
              vmSize = "string"
            }
            minInstanceCount = int
            name = "string"
            osProfile = {
              linuxOperatingSystemProfile = {
                password = "string"
                sshProfile = {
                  publicKeys = [
                    {
                      certificateData = "string"
                    }
                  ]
                }
                username = "string"
              }
            }
            scriptActions = [
              {
                name = "string"
                parameters = "string"
                uri = "string"
              }
            ]
            targetInstanceCount = int
            virtualNetworkProfile = {
              id = "string"
              subnet = "string"
            }
            VMGroupName = "string"
          }
        ]
      }
      diskEncryptionProperties = {
        encryptionAlgorithm = "string"
        encryptionAtHost = bool
        keyName = "string"
        keyVersion = "string"
        msiResourceId = "string"
        vaultUri = "string"
      }
      encryptionInTransitProperties = {
        isEncryptionInTransitEnabled = bool
      }
      kafkaRestProperties = {
        clientGroupInfo = {
          groupId = "string"
          groupName = "string"
        }
        configurationOverride = {}
      }
      minSupportedTlsVersion = "string"
      networkProperties = {
        privateLink = "string"
        resourceProviderConnection = "string"
      }
      osType = "string"
      securityProfile = {
        aaddsResourceId = "string"
        clusterUsersGroupDNs = [
          "string"
        ]
        directoryType = "ActiveDirectory"
        domain = "string"
        domainUsername = "string"
        domainUserPassword = "string"
        ldapsUrls = [
          "string"
        ]
        msiResourceId = "string"
        organizationalUnitDN = "string"
      }
      storageProfile = {
        storageaccounts = [
          {
            container = "string"
            fileshare = "string"
            fileSystem = "string"
            isDefault = bool
            key = "string"
            msiResourceId = "string"
            name = "string"
            resourceId = "string"
            saskey = "string"
          }
        ]
      }
      tier = "string"
    }
  })
}

屬性值

clusters

名稱 描述
類型 資源類型 “Microsoft.HDInsight/clusters@2018-06-01-preview”
NAME 資源名稱 字串 (必要)

字元限制:3-59

合法字元:
英數字元和連字號

以字母或數字開頭及結尾。

資源名稱在 Azure 中必須是唯一的。
location 叢集的位置。 字串
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 字串 (必要)
tags 資源標籤。 標記名稱和值的字典。
身分識別 如果已設定,則為叢集的身分識別。 ClusterIdentity
properties 叢集建立參數。 ClusterCreatePropertiesOrClusterGetProperties

ClusterIdentity

名稱 描述
類型 用於叢集的身分識別類型。 「SystemAssigned、UserAssigned」類型同時包含隱含建立的身分識別,和一組使用者指派的身分識別。 “SystemAssigned”
“SystemAssigned, UserAssigned”
“UserAssigned”
identity_ids 與叢集相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。 使用者身分識別標識碼的陣列。

ClusterCreatePropertiesOrClusterGetProperties

名稱 描述
clusterDefinition 叢集定義。 ClusterDefinition
clusterVersion 叢集的版本。 字串
computeIsolationProperties 計算隔離屬性。 ComputeIsolationProperties
computeProfile 計算配置檔。 ComputeProfile
diskEncryptionProperties 磁碟加密屬性。 DiskEncryptionProperties
encryptionInTransitProperties 傳輸中加密屬性。 EncryptionInTransitProperties
kafkaRestProperties 叢集 kafka rest Proxy 組態。 KafkaRestProperties
minSupportedTlsVersion 最低支援的 tls 版本。 字串
networkProperties 網路屬性。 NetworkProperties
osType 作業系統的類型。 "Linux"
"Windows"
securityProfile 安全性配置檔。 SecurityProfile
storageProfile 記憶體配置檔。 StorageProfile
tier 叢集層。 “Premium”
“標準”

ClusterDefinition

名稱 描述
藍圖 藍圖的連結。 字串
componentVersion 叢集中不同服務的版本。 物件 (object)
組態 叢集組態。
kind 叢集的類型。 字串

ComputeIsolationProperties

名稱 描述
enableComputeIsolation 旗標指出是否啟用計算隔離。 bool
hostSku 主機 SKU。 字串

ComputeProfile

名稱 描述
角色 叢集中的角色清單。 Role[]

角色

名稱 描述
自動調整 自動調整組態。 自動調整
dataDisksGroups 角色的數據磁碟群組。 DataDisksGroups[]
encryptDataDisks 指出是否加密數據磁碟。 bool
hardwareProfile 硬體配置檔。 HardwareProfile
minInstanceCount 叢集的最小實例計數。 int
NAME 角色的名稱。 字串
osProfile 操作系統配置檔。 OsProfile
scriptActions 角色上的腳本動作清單。 ScriptAction[]
targetInstanceCount 叢集的實例計數。 int
virtualNetworkProfile 虛擬網路配置檔。 VirtualNetworkProfile
VMGroupName 虛擬機群組的名稱。 字串

自動擴縮

名稱 描述
處理能力 負載型自動調整的參數 AutoscaleCapacity
週期 排程型自動調整的參數 AutoscaleRecurrence

AutoscaleCapacity

名稱 描述
maxInstanceCount 叢集的實例計數上限 int
minInstanceCount 叢集的最小實例計數 int

AutoscaleRecurrence

名稱 描述
schedule 以排程為基礎的自動調整規則陣列 AutoscaleSchedule[]
timeZone 自動調整排程時間的時區 字串

AutoscaleSchedule

名稱 描述
days 排程型自動調整規則的星期幾 包含任何項目的字串數組:
"Friday"
"Monday"
"Saturday"
"Sunday"
"Thursday"
"Tuesday"
"Wednesday"
timeAndCapacity 排程型自動調整規則的時間和容量 AutoscaleTimeAndCapacity

AutoscaleTimeAndCapacity

名稱 描述
maxInstanceCount 叢集的實例計數上限 int
minInstanceCount 叢集的最小實例計數 int
time 格式為 xx:xx 的 24 小時時間 字串

DataDisksGroups

名稱 描述
disksPerNode 每個節點的磁碟數目。 int

HardwareProfile

名稱 描述
vmSize VM 的大小 字串

OsProfile

名稱 描述
linuxOperatingSystemProfile Linux OS 配置檔。 LinuxOperatingSystemProfile

LinuxOperatingSystemProfile

名稱 描述
password 密碼。 字串
sshProfile SSH 設定檔。 SshProfile
使用者名稱 使用者名稱。 字串

SshProfile

名稱 描述
publicKeys SSH 公鑰清單。 SshPublicKey[]

SshPublicKey

名稱 描述
certificateData SSH 的憑證。 字串

ScriptAction

名稱 描述
NAME 腳本動作的名稱。 字串 (必要)
參數 提供的腳本參數。 字串 (必要)
uri 腳本的 URI。 字串 (必要)

VirtualNetworkProfile

名稱 描述
id 虛擬網路的標識碼。 字串
子網路 子網路的名稱。 字串

DiskEncryptionProperties

名稱 描述
encryptionAlgorithm 加密的演算法識別碼,預設 RSA-OAEP。 “RSA-OAEP”
“RSA-OAEP-256”
“RSA1_5”
encryptionAtHost 指出是否啟用資源磁碟加密。 bool
keyName 用於啟用磁碟加密的金鑰名稱。 字串
keyVersion 用於啟用磁碟加密的特定金鑰版本。 字串
msiResourceId 用來存取金鑰保存庫的受控識別資源識別碼。 字串
vaultUri 客戶金鑰所在的基底金鑰保存庫 URI,例如 https://myvault.vault.azure.net 字串

EncryptionInTransitProperties

名稱 描述
isEncryptionInTransitEnabled 指出是否在傳輸中加密叢集節點通訊。 bool

KafkaRestProperties

名稱 描述
clientGroupInfo AAD 安全組的資訊。 ClientGroupInfo
configurationOverride 需要覆寫的組態。 物件 (object)

ClientGroupInfo

名稱 描述
groupId AAD 安全組標識碼。 字串
groupName AAD 安全組名稱。 字串

NetworkProperties

名稱 描述
privateLink 指出是否啟用私人連結。 “Disabled”
“Enabled”
resourceProviderConnection 資源提供者連線的方向。 “Inbound”
“輸出”

SecurityProfile

名稱 描述
aaddsResourceId 使用者 Azure Active Directory 網域 服務的資源識別碼。 字串
clusterUsersGroupDN 選擇性。 叢集使用者群組的辨別名稱 string[]
directoryType 目錄類型。 “ActiveDirectory”
網域 組織的 Active Directory 網域。 字串
domainUsername 將具有叢集管理員許可權的網域用戶帳戶。 字串
domainUserPassword 網域系統管理員密碼。 字串
ldapsUrls 要與 Active Directory 通訊的 LDAPS 通訊協定 URL。 string[]
msiResourceId 使用者指派的身分識別具有讀取和建立使用者 AADDS 中叢集相關成品的許可權。 字串
organizationUnitDN Active Directory 內要放置叢集和服務帳戶的組織單位。 字串

StorageProfile

名稱 描述
storageaccounts 叢集中的記憶體帳戶清單。 StorageAccount[]

StorageAccount

名稱 描述
容器 記憶體帳戶中的容器,只能針對 WASB 記憶體帳戶指定。 字串
fileshare 檔案共用名。 字串
fileSystem 文件系統,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
isDefault 記憶體帳戶是否為預設記憶體帳戶。 bool
索引鍵 儲存體帳戶存取金鑰。 字串
msiResourceId 允許存取記憶體帳戶的受控識別 (MSI) ,只能針對 Azure Data Lake Storage Gen 2 指定。 字串
NAME 儲存體帳戶的名稱。 字串
resourceId 記憶體帳戶的資源標識碼,只能針對第 2 代 Azure Data Lake Storage 指定。 字串
saskey 共用存取簽章金鑰。 字串