Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
},
"Create cluster with TLS 1.2": {
"$ref": "./examples/CreateHDInsightClusterWithTLS12.json"
},
"Create cluster with custom network settings": {
"$ref": "./examples/CreateHDInsightClusterWithCustomNetworkSettings.json"
}
},
"parameters": [
Expand Down Expand Up @@ -924,6 +927,35 @@
},
"description": "The storage profile."
},
"NetworkSettings": {
"properties": {
"publicNetworkAccess": {
"type": "string",
"description": "Specifies whether public network access is enabled for inbound and outbound, or outbound only.",
"enum": [
"InboundAndOutbound",
"OutboundOnly"
],
"x-ms-enum": {
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"outboundOnlyPublicNetworkAccessType": {
"type": "string",
"description": "The mechanism through which the cluster will have outbound access to the public network.",
"enum": [
"PublicLoadBalancer",
"UDR"
],
"x-ms-enum": {
"name": "OutboundOnlyPublicNetworkAccessType",
"modelAsString": true
}
}
},
"description": "The network settings."
},
"ClusterCreateProperties": {
"description": "The cluster create parameters.",
"properties": {
Expand Down Expand Up @@ -982,6 +1014,10 @@
"minSupportedTlsVersion": {
"type": "string",
"description": "The minimal supported tls version."
},
"networkSettings": {
"$ref": "#/definitions/NetworkSettings",
"description": "The network settings."
}
}
},
Expand Down Expand Up @@ -1162,6 +1198,10 @@
"minSupportedTlsVersion": {
"type": "string",
"description": "The minimal supported tls version."
},
"networkSettings": {
"$ref": "#/definitions/NetworkSettings",
"description": "The network settings."
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"parameters": {
"clusterName": "cluster1",
"resourceGroupName": "rg1",
"api-version": "2015-03-01-preview",
"subscriptionId": "subId",
"parameters": {
"properties": {
"clusterVersion": "3.6",
"osType": "Linux",
"clusterDefinition": {
"kind": "hadoop",
"configurations": {
"gateway": {
"restAuthCredential.isEnabled": true,
"restAuthCredential.username": "admin",
"restAuthCredential.password": "**********"
}
}
},
"storageProfile": {
"storageaccounts": [
{
"name": "mystorage",
"isDefault": true,
"container": "containername",
"key": "storage account key"
}
]
},
"computeProfile": {
"roles": [
{
"name": "headnode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser",
"password": "**********",
"sshProfile": {
"publicKeys": [
{
"certificateData": "**********"
}
]
}
}
},
"virtualNetworkProfile": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
"subnet": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
}
},
{
"name": "workernode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser",
"password": "**********",
"sshProfile": {
"publicKeys": [
{
"certificateData": "**********"
}
]
}
}
},
"virtualNetworkProfile": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
"subnet": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
}
}
]
},
"networkSettings": {
"publicNetworkAccess": "OutboundOnly",
"outboundOnlyPublicNetworkAccessType": "PublicLoadBalancer"
}
}
}
},
"responses": {
"200": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid/providers/Microsoft.HDInsight/pathToOperationResult"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.HDInsight/clusters/cluster1",
"name": "cluster1",
"type": "Microsoft.HDInsight/clusters",
"location": "East US",
"etag": "fdf2a6e8-ce83-42cc-8c2d-0ceb11a370ff",
"tags": null,
"properties": {
"clusterVersion": "3.6.1000.67",
"osType": "Linux",
"clusterDefinition": {
"blueprint": "https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.2005040905.json",
"kind": "hadoop"
},
"computeProfile": {
"roles": [
{
"name": "headnode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser"
}
},
"virtualNetworkProfile": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
"subnet": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
}
},
{
"name": "workernode",
"targetInstanceCount": 2,
"hardwareProfile": {
"vmSize": "standard_d3"
},
"osProfile": {
"linuxOperatingSystemProfile": {
"username": "sshuser"
}
},
"virtualNetworkProfile": {
"id": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname",
"subnet": "/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/vnetsubnet"
}
}
]
},
"networkSettings": {
"publicNetworkAccess": "OutboundOnly",
"outboundOnlyPublicNetworkAccessType": "PublicLoadBalancer"
},
"provisioningState": "Succeeded",
"clusterState": "Running",
"createdDate": "2020-06-09T12:25:43.48",
"quotaInfo": {
"coresUsed": 16
},
"tier": "Standard"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
},
"Create cluster with TLS 1.2": {
"$ref": "./examples/CreateHDInsightClusterWithTLS12.json"
},
"Create cluster with custom network settings": {
"$ref": "./examples/CreateHDInsightClusterWithCustomNetworkSettings.json"
}
},
"parameters": [
Expand Down Expand Up @@ -924,6 +927,35 @@
},
"description": "The storage profile."
},
"NetworkSettings": {
"properties": {
"publicNetworkAccess": {
"type": "string",
"description": "Specifies whether public network access is enabled for inbound and outbound, or outbound only.",
"enum": [
"InboundAndOutbound",
"OutboundOnly"
],
"x-ms-enum": {
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"outboundOnlyPublicNetworkAccessType": {
"type": "string",
"description": "The mechanism through which the cluster will have outbound access to the public network.",
"enum": [
"PublicLoadBalancer",
"UDR"
],
"x-ms-enum": {
"name": "OutboundOnlyPublicNetworkAccessType",
"modelAsString": true
}
}
},
"description": "The network settings."
},
"ClusterCreateProperties": {
"description": "The cluster create parameters.",
"properties": {
Expand Down Expand Up @@ -982,6 +1014,10 @@
"minSupportedTlsVersion": {
"type": "string",
"description": "The minimal supported tls version."
},
"networkSettings": {
"$ref": "#/definitions/NetworkSettings",
"description": "The network settings."
}
}
},
Expand Down Expand Up @@ -1162,6 +1198,10 @@
"minSupportedTlsVersion": {
"type": "string",
"description": "The minimal supported tls version."
},
"networkSettings": {
"$ref": "#/definitions/NetworkSettings",
"description": "The network settings."
}
},
"required": [
Expand Down
Loading