Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe316 committed May 10, 2019
1 parent d382915 commit ae70150
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
33 changes: 33 additions & 0 deletions infra-as-code/vnetclusterparameters.json
@@ -0,0 +1,33 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspaceName": {
"value": "myworkspace"
},
"clusterName": {
"value": "mycluster"
},
"minNodeCount": {
"value": 0
},
"maxNodeCount": {
"value": 1
},
"adminUserName": {
"value": "<Fill-here>"
},
"adminUserPassword": {
"value": "<Fill-here>"
},
"workspacelocation": {
"value": "<Fill-here>"
},
"vmSize": {
"value": "workspacelocation"
},
"subnetId": {
"value": "/subscriptions/xxxx/resourceGroups/yyyy/providers/Microsoft.Network/virtualNetworks/zzzz/subnets/ssss"
}
}
}
64 changes: 64 additions & 0 deletions infra-as-code/vnetclustertemplate.json
@@ -0,0 +1,64 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspaceName": {
"type": "string"
},
"clusterName": {
"type": "string"
},
"minNodeCount": {
"type": "int"
},
"maxNodeCount": {
"type": "int"
},
"workspacelocation": {
"type": "string"
},
"adminUserName": {
"type": "string"
},
"adminUserPassword": {
"type": "string"
},
"vmSize": {
"type": "string"
},
"subnetId": {
"type": "string"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.MachineLearningServices/workspaces/computes",
"name": "[concat(parameters('workspaceName'), '/', parameters('clusterName'))]",
"apiVersion": "2018-11-19",
"location" : "[parameters('workspacelocation')]",
"properties": {
"computeType": "AmlCompute",
"computeLocation" : "[parameters('workspacelocation')]",
"properties":
{
"vmSize" : "[parameters('vmSize')]",
"scaleSettings":
{
"minNodeCount" : "[parameters('minNodeCount')]",
"maxNodeCount" : "[parameters('maxNodeCount')]"
},
"userAccountCredentials" :
{
"adminUserName" : "[parameters('adminUserName')]",
"adminUserPassword" : "[parameters('adminUserPassword')]"
},
"subnet" :
{
"id" : "[parameters('subnetId')]"
}
}
}
}
]
}

0 comments on commit ae70150

Please sign in to comment.