-
Notifications
You must be signed in to change notification settings - Fork 14
/
deployplcompute.json
78 lines (78 loc) · 2.58 KB
/
deployplcompute.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vnet_name": {
"type": "String"
},
"location": {
"type": "string",
"allowedValues": [
"eastus",
"southcentralus",
"westus2"
],
"metadata": {
"description": "Specifies the location for all resources."
},
"defaultValue": "[resourceGroup().location]"
},
"workspace_name": {
"type": "String"
},
"cluster_name": {
"type": "String"
},
"subnet_name": {
"type": "String"
},
"admin_username": {
"type": "string",
"defaultValue": "azureuser"
},
"admin_user_password": {
"type": "securestring"
},
"vm_size_sku": {
"type": "string",
"defaultValue": "STANDARD_DS2_V2"
},
"min_node_count": {
"type": "int",
"defaultValue": 0
},
"max_node_count": {
"type": "int"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.MachineLearningServices/workspaces/computes",
"apiVersion": "2020-05-15-preview",
"name": "[concat(parameters('workspace_name'),'/',parameters('cluster_name'))]",
"location": "[parameters('location')]",
"properties": {
"computeType": "AmlCompute",
"computeLocation": "[parameters('location')]",
"properties": {
"vmSize": "[parameters('vm_size_sku')]",
"vmPriority": "Dedicated",
"scaleSettings": {
"minNodeCount": "[parameters('min_node_count')]",
"maxNodeCount": "[parameters('max_node_count')]"
},
"userAccountCredentials": {
"adminUserName": "[parameters('admin_username')]",
"adminUserPassword": "[parameters('admin_user_password')]"
},
"remoteLoginPortPublicAccess": "Enabled",
"enableNodePublicIp": false,
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('vnet_name'), parameters('subnet_name'))]"
}
}
}
}
]
}