2017-02-15 13:00:03 +03:00
|
|
|
{
|
|
|
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
|
|
"contentVersion": "1.0.0.0",
|
|
|
|
"parameters": {
|
|
|
|
"location": {
|
|
|
|
"defaultValue": null,
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"virtualMachineSize": {
|
|
|
|
"defaultValue": null,
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"adminUsername": {
|
|
|
|
"defaultValue": null,
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"virtualMachines_adminPassword": {
|
|
|
|
"defaultValue": null,
|
|
|
|
"type": "SecureString"
|
|
|
|
},
|
|
|
|
"virtualMachines_name": {
|
|
|
|
"defaultValue": "test",
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"networkInterfaces_name": {
|
|
|
|
"defaultValue": "test717",
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"networkSecurityGroups_nsg_name": {
|
|
|
|
"defaultValue": "test-nsg",
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"publicIPAddresses_ip_name": {
|
|
|
|
"defaultValue": "test-ip",
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"virtualNetworks_name": {
|
|
|
|
"defaultValue": "my_dsvm_rg_sea-vnet",
|
|
|
|
"type": "String"
|
|
|
|
},
|
2017-02-17 09:40:54 +03:00
|
|
|
"storageAccounts_name": {
|
2017-06-21 10:52:35 +03:00
|
|
|
"defaultValue": "dsvmdisks",
|
2017-02-15 13:00:03 +03:00
|
|
|
"type": "String"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"variables": {},
|
|
|
|
"resources": [
|
|
|
|
{
|
|
|
|
"type": "Microsoft.Compute/virtualMachines",
|
|
|
|
"name": "[parameters('virtualMachines_name')]",
|
2017-06-19 04:29:30 +03:00
|
|
|
"apiVersion": "2016-04-30-preview",
|
2017-02-15 13:00:03 +03:00
|
|
|
"location": "[parameters('location')]",
|
|
|
|
"plan": {
|
2017-06-19 05:47:37 +03:00
|
|
|
"name": "standard-data-science-vm",
|
|
|
|
"product": "standard-data-science-vm",
|
|
|
|
"publisher": "microsoft-ads"
|
2017-02-15 13:00:03 +03:00
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"hardwareProfile": {
|
|
|
|
"vmSize": "[parameters('virtualMachineSize')]"
|
|
|
|
},
|
|
|
|
"storageProfile": {
|
|
|
|
"imageReference": {
|
|
|
|
"publisher": "microsoft-ads",
|
2017-06-19 05:47:37 +03:00
|
|
|
"offer": "standard-data-science-vm",
|
|
|
|
"sku": "standard-data-science-vm",
|
2017-02-15 13:00:03 +03:00
|
|
|
"version": "latest"
|
|
|
|
},
|
|
|
|
"osDisk": {
|
|
|
|
"name": "[parameters('virtualMachines_name')]",
|
|
|
|
"createOption": "FromImage",
|
|
|
|
"vhd": {
|
2017-03-03 11:23:30 +03:00
|
|
|
"uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'.vhd'))]"
|
2017-02-15 13:00:03 +03:00
|
|
|
},
|
|
|
|
"caching": "ReadWrite"
|
|
|
|
},
|
|
|
|
"dataDisks": []
|
|
|
|
},
|
|
|
|
"osProfile": {
|
|
|
|
"computerName": "[parameters('virtualMachines_name')]",
|
|
|
|
"adminUsername": "[parameters('adminUsername')]",
|
|
|
|
"windowsConfiguration": {
|
|
|
|
"provisionVMAgent": true,
|
|
|
|
"enableAutomaticUpdates": true
|
|
|
|
},
|
|
|
|
"secrets": [],
|
|
|
|
"adminPassword": "[parameters('virtualMachines_adminPassword')]"
|
|
|
|
},
|
|
|
|
"networkProfile": {
|
|
|
|
"networkInterfaces": [
|
|
|
|
{
|
|
|
|
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"resources": [],
|
|
|
|
"dependsOn": [
|
|
|
|
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Microsoft.Network/networkInterfaces",
|
|
|
|
"name": "[parameters('networkInterfaces_name')]",
|
|
|
|
"apiVersion": "2016-03-30",
|
|
|
|
"location": "[parameters('location')]",
|
|
|
|
"properties": {
|
|
|
|
"ipConfigurations": [
|
|
|
|
{
|
|
|
|
"name": "ipconfig1",
|
|
|
|
"properties": {
|
|
|
|
"privateIPAddress": "10.1.1.4",
|
|
|
|
"privateIPAllocationMethod": "Dynamic",
|
|
|
|
"publicIPAddress": {
|
|
|
|
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
|
|
|
|
},
|
|
|
|
"subnet": {
|
|
|
|
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"dnsSettings": {
|
|
|
|
"dnsServers": []
|
|
|
|
},
|
|
|
|
"enableIPForwarding": false,
|
|
|
|
"networkSecurityGroup": {
|
|
|
|
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"resources": [],
|
|
|
|
"dependsOn": [
|
|
|
|
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
|
|
|
|
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
|
|
|
|
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Microsoft.Network/networkSecurityGroups",
|
|
|
|
"name": "[parameters('networkSecurityGroups_nsg_name')]",
|
|
|
|
"apiVersion": "2016-03-30",
|
|
|
|
"location": "[parameters('location')]",
|
|
|
|
"properties": {
|
|
|
|
"securityRules": [
|
|
|
|
{
|
|
|
|
"name": "IPythonNB",
|
|
|
|
"properties": {
|
|
|
|
"protocol": "TCP",
|
|
|
|
"sourcePortRange": "*",
|
|
|
|
"destinationPortRange": "9999",
|
|
|
|
"sourceAddressPrefix": "*",
|
|
|
|
"destinationAddressPrefix": "*",
|
|
|
|
"access": "Allow",
|
|
|
|
"priority": 1010,
|
|
|
|
"direction": "Inbound"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "MSSQL",
|
|
|
|
"properties": {
|
|
|
|
"protocol": "TCP",
|
|
|
|
"sourcePortRange": "*",
|
|
|
|
"destinationPortRange": "1433",
|
|
|
|
"sourceAddressPrefix": "*",
|
|
|
|
"destinationAddressPrefix": "*",
|
|
|
|
"access": "Allow",
|
|
|
|
"priority": 1020,
|
|
|
|
"direction": "Inbound"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "default-allow-rdp",
|
|
|
|
"properties": {
|
|
|
|
"protocol": "TCP",
|
|
|
|
"sourcePortRange": "*",
|
|
|
|
"destinationPortRange": "3389",
|
|
|
|
"sourceAddressPrefix": "*",
|
|
|
|
"destinationAddressPrefix": "*",
|
|
|
|
"access": "Allow",
|
|
|
|
"priority": 1030,
|
|
|
|
"direction": "Inbound"
|
|
|
|
}
|
2017-03-22 11:55:37 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "allowROp",
|
|
|
|
"properties": {
|
|
|
|
"protocol": "TCP",
|
|
|
|
"sourcePortRange": "*",
|
|
|
|
"destinationPortRange": "12800",
|
|
|
|
"sourceAddressPrefix": "*",
|
|
|
|
"destinationAddressPrefix": "*",
|
|
|
|
"access": "Allow",
|
|
|
|
"priority": 1040,
|
|
|
|
"direction": "Inbound"
|
|
|
|
}
|
2017-02-15 13:00:03 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"resources": [],
|
|
|
|
"dependsOn": []
|
|
|
|
},
|
2017-03-03 11:23:30 +03:00
|
|
|
{
|
2017-02-15 13:00:03 +03:00
|
|
|
"type": "Microsoft.Network/publicIPAddresses",
|
|
|
|
"name": "[parameters('publicIPAddresses_ip_name')]",
|
|
|
|
"apiVersion": "2016-03-30",
|
|
|
|
"location": "[parameters('location')]",
|
|
|
|
"properties": {
|
|
|
|
"publicIPAllocationMethod": "Dynamic",
|
|
|
|
"idleTimeoutInMinutes": 4,
|
|
|
|
"dnsSettings": {
|
|
|
|
"domainNameLabel": "<DNS_LABEL>"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"resources": [],
|
|
|
|
"dependsOn": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Microsoft.Network/virtualNetworks",
|
|
|
|
"name": "[parameters('virtualNetworks_name')]",
|
|
|
|
"apiVersion": "2016-03-30",
|
|
|
|
"location": "[parameters('location')]",
|
|
|
|
"properties": {
|
|
|
|
"addressSpace": {
|
|
|
|
"addressPrefixes": [
|
|
|
|
"10.1.1.0/24"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"subnets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"properties": {
|
|
|
|
"addressPrefix": "10.1.1.0/24"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"resources": [],
|
|
|
|
"dependsOn": []
|
|
|
|
},
|
2017-03-03 11:23:30 +03:00
|
|
|
{
|
2017-02-15 13:00:03 +03:00
|
|
|
"type": "Microsoft.Storage/storageAccounts",
|
|
|
|
"sku": {
|
|
|
|
"name": "Standard_LRS",
|
|
|
|
"tier": "Standard"
|
|
|
|
},
|
|
|
|
"kind": "Storage",
|
2017-02-17 09:40:54 +03:00
|
|
|
"name": "[parameters('storageAccounts_name')]",
|
2017-02-15 13:00:03 +03:00
|
|
|
"apiVersion": "2016-01-01",
|
2017-03-03 11:23:30 +03:00
|
|
|
"location": "[resourceGroup().location]",
|
2017-02-15 13:00:03 +03:00
|
|
|
"tags": {},
|
|
|
|
"properties": {},
|
|
|
|
"resources": [],
|
|
|
|
"dependsOn": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|