Skip to content

Commit ee1a701

Browse files
aim-for-betterZhenyu Zhou
andauthored
Add encryptionAtHost property (#10437)
Co-authored-by: Zhenyu Zhou <[email protected]>
1 parent 3e97473 commit ee1a701

File tree

4 files changed

+363
-0
lines changed

4 files changed

+363
-0
lines changed

specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
},
7272
"Create cluster with encryption in transit": {
7373
"$ref": "./examples/CreateHDInsightClusterWithEncryptionInTransit.json"
74+
},
75+
"Create cluster with encryption at host": {
76+
"$ref": "./examples/CreateHDInsightClusterWithEncryptionAtHost.json"
7477
}
7578
},
7679
"parameters": [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"parameters": {
3+
"clusterName": "cluster1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2015-03-01-preview",
6+
"subscriptionId": "subid",
7+
"parameters": {
8+
"properties": {
9+
"clusterVersion": "3.6",
10+
"osType": "Linux",
11+
"tier": "Standard",
12+
"clusterDefinition": {
13+
"kind": "Hadoop",
14+
"configurations": {
15+
"gateway": {
16+
"restAuthCredential.isEnabled": true,
17+
"restAuthCredential.username": "admin",
18+
"restAuthCredential.password": "**********"
19+
}
20+
}
21+
},
22+
"computeProfile": {
23+
"roles": [
24+
{
25+
"name": "headnode",
26+
"targetInstanceCount": 2,
27+
"hardwareProfile": {
28+
"vmSize": "Standard_DS14_v2"
29+
},
30+
"osProfile": {
31+
"linuxOperatingSystemProfile": {
32+
"username": "sshuser",
33+
"password": "**********"
34+
}
35+
}
36+
},
37+
{
38+
"name": "workernode",
39+
"targetInstanceCount": 3,
40+
"hardwareProfile": {
41+
"vmSize": "Standard_DS14_v2"
42+
},
43+
"osProfile": {
44+
"linuxOperatingSystemProfile": {
45+
"username": "sshuser",
46+
"password": "**********"
47+
}
48+
}
49+
},
50+
{
51+
"name": "zookeepernode",
52+
"targetInstanceCount": 3,
53+
"hardwareProfile": {
54+
"vmSize": "Standard_DS14_v2"
55+
},
56+
"osProfile": {
57+
"linuxOperatingSystemProfile": {
58+
"username": "sshuser",
59+
"password": "**********"
60+
}
61+
}
62+
}
63+
]
64+
},
65+
"storageProfile": {
66+
"storageaccounts": [
67+
{
68+
"name": "mystorage.blob.core.windows.net",
69+
"isDefault": true,
70+
"container": "default8525",
71+
"key": "storagekey"
72+
}
73+
]
74+
},
75+
"diskEncryptionProperties": {
76+
"encryptionAtHost": true
77+
}
78+
}
79+
}
80+
},
81+
"responses": {
82+
"200": {
83+
"headers": {
84+
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
85+
},
86+
"body": {
87+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1",
88+
"name": "cluster1",
89+
"type": "Microsoft.HDInsight/clusters",
90+
"location": "South Central US",
91+
"etag": "3b76ce3d-892c-4036-9d8b-8ade18ba7a4b",
92+
"tags": null,
93+
"properties": {
94+
"clusterVersion": "3.6.1000.67",
95+
"osType": "Linux",
96+
"clusterDefinition": {
97+
"blueprint": "https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.2001080246.json",
98+
"kind": "Hadoop",
99+
"componentVersion": {
100+
"Hadoop": "2.7"
101+
}
102+
},
103+
"computeProfile": {
104+
"roles": [
105+
{
106+
"name": "headnode",
107+
"targetInstanceCount": 2,
108+
"hardwareProfile": {
109+
"vmSize": "standard_ds14_v2"
110+
},
111+
"osProfile": {
112+
"linuxOperatingSystemProfile": {
113+
"username": "sshuser"
114+
}
115+
}
116+
},
117+
{
118+
"name": "workernode",
119+
"targetInstanceCount": 3,
120+
"hardwareProfile": {
121+
"vmSize": "standard_ds14_v2"
122+
},
123+
"osProfile": {
124+
"linuxOperatingSystemProfile": {
125+
"username": "sshuser"
126+
}
127+
}
128+
},
129+
{
130+
"name": "zookeepernode",
131+
"targetInstanceCount": 3,
132+
"hardwareProfile": {
133+
"vmSize": "standard_ds14_v2"
134+
},
135+
"osProfile": {
136+
"linuxOperatingSystemProfile": {
137+
"username": "sshuser"
138+
}
139+
}
140+
}
141+
]
142+
},
143+
"provisioningState": "Succeeded",
144+
"clusterState": "Running",
145+
"createdDate": "2020-01-10T08:36:39.153",
146+
"quotaInfo": {
147+
"coresUsed": 20
148+
},
149+
"connectivityEndpoints": [
150+
{
151+
"name": "SSH",
152+
"protocol": "TCP",
153+
"location": "cluster1-ssh.azurehdinsight.net",
154+
"port": 22
155+
},
156+
{
157+
"name": "HTTPS",
158+
"protocol": "TCP",
159+
"location": "cluster1.azurehdinsight.net",
160+
"port": 443
161+
}
162+
],
163+
"tier": "Standard",
164+
"diskEncryptionProperties": {
165+
"vaultUri": null,
166+
"keyName": null,
167+
"keyVersion": null,
168+
"encryptionAlgorithm": null,
169+
"msiResourceId": null,
170+
"encryptionAtHost": true
171+
}
172+
}
173+
}
174+
}
175+
}
176+
}

specification/hdinsight/resource-manager/Microsoft.HDInsight/stable/2018-06-01-preview/cluster.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
},
7272
"Create cluster with encryption in transit": {
7373
"$ref": "./examples/CreateHDInsightClusterWithEncryptionInTransit.json"
74+
},
75+
"Create cluster with encryption at host": {
76+
"$ref": "./examples/CreateHDInsightClusterWithEncryptionAtHost.json"
7477
}
7578
},
7679
"parameters": [
@@ -1599,6 +1602,11 @@
15991602
"msiResourceId": {
16001603
"type": "string",
16011604
"description": "Resource ID of Managed Identity that is used to access the key vault."
1605+
},
1606+
"encryptionAtHost": {
1607+
"type": "boolean",
1608+
"default": false,
1609+
"description": "Indicates whether or not resource disk encryption is enabled."
16021610
}
16031611
}
16041612
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"parameters": {
3+
"clusterName": "cluster1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2018-06-01-preview",
6+
"subscriptionId": "subid",
7+
"parameters": {
8+
"properties": {
9+
"clusterVersion": "3.6",
10+
"osType": "Linux",
11+
"tier": "Standard",
12+
"clusterDefinition": {
13+
"kind": "Hadoop",
14+
"configurations": {
15+
"gateway": {
16+
"restAuthCredential.isEnabled": true,
17+
"restAuthCredential.username": "admin",
18+
"restAuthCredential.password": "**********"
19+
}
20+
}
21+
},
22+
"computeProfile": {
23+
"roles": [
24+
{
25+
"name": "headnode",
26+
"targetInstanceCount": 2,
27+
"hardwareProfile": {
28+
"vmSize": "Standard_DS14_v2"
29+
},
30+
"osProfile": {
31+
"linuxOperatingSystemProfile": {
32+
"username": "sshuser",
33+
"password": "**********"
34+
}
35+
}
36+
},
37+
{
38+
"name": "workernode",
39+
"targetInstanceCount": 3,
40+
"hardwareProfile": {
41+
"vmSize": "Standard_DS14_v2"
42+
},
43+
"osProfile": {
44+
"linuxOperatingSystemProfile": {
45+
"username": "sshuser",
46+
"password": "**********"
47+
}
48+
}
49+
},
50+
{
51+
"name": "zookeepernode",
52+
"targetInstanceCount": 3,
53+
"hardwareProfile": {
54+
"vmSize": "Standard_DS14_v2"
55+
},
56+
"osProfile": {
57+
"linuxOperatingSystemProfile": {
58+
"username": "sshuser",
59+
"password": "**********"
60+
}
61+
}
62+
}
63+
]
64+
},
65+
"storageProfile": {
66+
"storageaccounts": [
67+
{
68+
"name": "mystorage.blob.core.windows.net",
69+
"isDefault": true,
70+
"container": "default8525",
71+
"key": "storagekey"
72+
}
73+
]
74+
},
75+
"diskEncryptionProperties": {
76+
"encryptionAtHost": true
77+
}
78+
}
79+
}
80+
},
81+
"responses": {
82+
"200": {
83+
"headers": {
84+
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
85+
},
86+
"body": {
87+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1",
88+
"name": "cluster1",
89+
"type": "Microsoft.HDInsight/clusters",
90+
"location": "South Central US",
91+
"etag": "3b76ce3d-892c-4036-9d8b-8ade18ba7a4b",
92+
"tags": null,
93+
"properties": {
94+
"clusterVersion": "3.6.1000.67",
95+
"osType": "Linux",
96+
"clusterDefinition": {
97+
"blueprint": "https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.2001080246.json",
98+
"kind": "Hadoop",
99+
"componentVersion": {
100+
"Hadoop": "2.7"
101+
}
102+
},
103+
"computeProfile": {
104+
"roles": [
105+
{
106+
"name": "headnode",
107+
"targetInstanceCount": 2,
108+
"hardwareProfile": {
109+
"vmSize": "standard_ds14_v2"
110+
},
111+
"osProfile": {
112+
"linuxOperatingSystemProfile": {
113+
"username": "sshuser"
114+
}
115+
}
116+
},
117+
{
118+
"name": "workernode",
119+
"targetInstanceCount": 3,
120+
"hardwareProfile": {
121+
"vmSize": "standard_ds14_v2"
122+
},
123+
"osProfile": {
124+
"linuxOperatingSystemProfile": {
125+
"username": "sshuser"
126+
}
127+
}
128+
},
129+
{
130+
"name": "zookeepernode",
131+
"targetInstanceCount": 3,
132+
"hardwareProfile": {
133+
"vmSize": "standard_ds14_v2"
134+
},
135+
"osProfile": {
136+
"linuxOperatingSystemProfile": {
137+
"username": "sshuser"
138+
}
139+
}
140+
}
141+
]
142+
},
143+
"provisioningState": "Succeeded",
144+
"clusterState": "Running",
145+
"createdDate": "2020-01-10T08:36:39.153",
146+
"quotaInfo": {
147+
"coresUsed": 20
148+
},
149+
"connectivityEndpoints": [
150+
{
151+
"name": "SSH",
152+
"protocol": "TCP",
153+
"location": "cluster1-ssh.azurehdinsight.net",
154+
"port": 22
155+
},
156+
{
157+
"name": "HTTPS",
158+
"protocol": "TCP",
159+
"location": "cluster1.azurehdinsight.net",
160+
"port": 443
161+
}
162+
],
163+
"tier": "Standard",
164+
"diskEncryptionProperties": {
165+
"vaultUri": null,
166+
"keyName": null,
167+
"keyVersion": null,
168+
"encryptionAlgorithm": null,
169+
"msiResourceId": null,
170+
"encryptionAtHost": true
171+
}
172+
}
173+
}
174+
}
175+
}
176+
}

0 commit comments

Comments
 (0)