зеркало из https://github.com/Azure/DataScienceVM.git
Create AzureML WS with DSVM
This commit is contained in:
Родитель
97b6152571
Коммит
f24feb07a9
|
@ -0,0 +1,145 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Description of the AML Workspace."
|
||||
},
|
||||
"defaultValue": ""
|
||||
},
|
||||
"friendlyName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Friendly Alias of the AML Workspace."
|
||||
},
|
||||
"defaultValue": ""
|
||||
},
|
||||
"machineLearningApiVersion": {
|
||||
"type": "string",
|
||||
"defaultValue": "2018-03-01-preview"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the AML Workspace."
|
||||
}
|
||||
},
|
||||
"location" : {
|
||||
"type" : "string",
|
||||
"metadata": {
|
||||
"description": "Region of the resource"
|
||||
},
|
||||
"defaultValue": "[resourceGroup().location]"
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"name" :"[parameters('name')]",
|
||||
"genid" :"[concat(parameters('name'),uniqueString(subscription().subscriptionId,variables('name')))]",
|
||||
"newContainerRegistryName": "[concat('cr',variables('genid'))]",
|
||||
"newStorageAccountName": "[concat('sa',variables('genid'))]",
|
||||
"appInsightsName": "[concat('ai',variables('genid'))]",
|
||||
"keyVaultName": "[concat('kv',variables('genid'))]",
|
||||
"newContainerRegistryType": "Basic",
|
||||
"newStorageAccountType": "Standard_LRS",
|
||||
"storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts',variables('newStorageAccountName'))]",
|
||||
"containerRegistryId": "[resourceId('Microsoft.ContainerRegistry/registries', variables('newContainerRegistryName'))]",
|
||||
"storageApiVersion": "2016-12-01",
|
||||
"appInsightsApiVersion": "2015-05-01",
|
||||
"containerRegistryApiVersion": "2017-10-01",
|
||||
"appInsightsId": "[resourceId('Microsoft.Insights/components', variables('appInsightsName'))]",
|
||||
"appInsightsKind": "web",
|
||||
"appInsightsType": "web",
|
||||
"appInsightsLocation": "[parameters('location')]",
|
||||
"keyVaultApiVersion": "2015-06-01",
|
||||
"keyVaultId": "[resourceId('Microsoft.KeyVault/vaults',variables('keyVaultName'))]",
|
||||
"keyVaultTenant": "[subscription().tenantId]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.MachineLearningServices/workspaces",
|
||||
"name": "[parameters('name')]",
|
||||
"apiVersion": "[parameters('machineLearningApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"identity": {
|
||||
"type": "systemAssigned"
|
||||
},
|
||||
"properties": {
|
||||
"containerRegistry": "[variables('containerRegistryId')]",
|
||||
"descsription": "[parameters('description')]",
|
||||
"friendlyName": "[parameters('friendlyName')]",
|
||||
"keyVault": "[variables('keyVaultId')]",
|
||||
"storageAccount": "[variables('storageAccountId')]",
|
||||
"applicationInsights": "[variables('appInsightsId')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[variables('containerRegistryId')]",
|
||||
"[variables('keyVaultId')]",
|
||||
"[variables('storageAccountId')]",
|
||||
"[variables('appInsightsId')]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"sku": {
|
||||
"name": "[variables('newStorageAccountType')]"
|
||||
},
|
||||
"kind": "Storage",
|
||||
"name": "[variables('newStorageAccountName')]",
|
||||
"apiVersion": "[variables('storageApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"supportsHttpsTrafficOnly": true,
|
||||
"encryption": {
|
||||
"keySource": "Microsoft.Storage",
|
||||
"services": {
|
||||
"blob": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.ContainerRegistry/registries",
|
||||
"sku": {
|
||||
"name": "[variables('newContainerRegistryType')]"
|
||||
},
|
||||
"kind": "Registry",
|
||||
"name": "[variables('newContainerRegistryName')]",
|
||||
"apiVersion": "[variables('containerRegistryApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"adminUserEnabled": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.KeyVault/vaults",
|
||||
"name": "[variables('keyVaultName')]",
|
||||
"apiVersion": "[variables('keyVaultApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"accessPolicies": [],
|
||||
"enabledForDeployment": true,
|
||||
"enabledForTemplateDeployment": true,
|
||||
"enabledForVolumeEncryption": true,
|
||||
"sku": {
|
||||
"name": "standard",
|
||||
"family": "A"
|
||||
},
|
||||
"tenantId": "[variables('keyVaultTenant')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Insights/components",
|
||||
"kind": "[variables('appInsightsKind')]",
|
||||
"name": "[variables('appInsightsName')]",
|
||||
"apiVersion": "[variables('appInsightsApiVersion')]",
|
||||
"location": "[variables('appInsightsLocation')]",
|
||||
"properties": {
|
||||
"Application_Type": "[variables('appInsightsType')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,199 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"description": {
|
||||
"defaultValue": "",
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Description of the AML Workspace."
|
||||
}
|
||||
},
|
||||
"friendlyName": {
|
||||
"defaultValue": "",
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Friendly Alias of the AML Workspace."
|
||||
}
|
||||
},
|
||||
"machineLearningApiVersion": {
|
||||
"defaultValue": "2018-03-01-preview",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name of the AML Workspace."
|
||||
}
|
||||
},
|
||||
"numberOfDevInstances": {
|
||||
"type": "int",
|
||||
"defaultValue": 0,
|
||||
"metadata": {
|
||||
"description": "Number of DSVMs to deploy to workspace."
|
||||
}
|
||||
},
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_NC6",
|
||||
"metadata": {
|
||||
"description": "Size for the Virtual Machine."
|
||||
}
|
||||
},
|
||||
"vmAdminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Username for the Virtual Machine."
|
||||
},
|
||||
"defaultValue": "[concat(parameters('name'), 'user']"
|
||||
},
|
||||
"vmAdminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password for the Virtual Machine."
|
||||
}
|
||||
},
|
||||
"vmName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name prefix for the Dev Instances."
|
||||
},
|
||||
"defaultValue": "[concat(parameters('name'), 'vm')]"
|
||||
},
|
||||
"location": {
|
||||
"defaultValue": "[resourceGroup().location]",
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Region of the resource"
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"name": "[parameters('name')]",
|
||||
"genid": "[concat(parameters('name'),uniqueString(subscription().subscriptionId,variables('name')))]",
|
||||
"newContainerRegistryName": "[concat('cr',variables('genid'))]",
|
||||
"newStorageAccountName": "[concat('sa',variables('genid'))]",
|
||||
"appInsightsName": "[concat('ai',variables('genid'))]",
|
||||
"keyVaultName": "[concat('kv',variables('genid'))]",
|
||||
"newContainerRegistryType": "Basic",
|
||||
"newStorageAccountType": "Standard_LRS",
|
||||
"storageAccountId": "[resourceId('Microsoft.Storage/storageAccounts',variables('newStorageAccountName'))]",
|
||||
"containerRegistryId": "[resourceId('Microsoft.ContainerRegistry/registries', variables('newContainerRegistryName'))]",
|
||||
"storageApiVersion": "2016-12-01",
|
||||
"appInsightsApiVersion": "2015-05-01",
|
||||
"containerRegistryApiVersion": "2017-10-01",
|
||||
"appInsightsId": "[resourceId('Microsoft.Insights/components', variables('appInsightsName'))]",
|
||||
"appInsightsKind": "web",
|
||||
"appInsightsType": "web",
|
||||
"appInsightsLocation": "[parameters('location')]",
|
||||
"keyVaultApiVersion": "2015-06-01",
|
||||
"keyVaultId": "[resourceId('Microsoft.KeyVault/vaults',variables('keyVaultName'))]",
|
||||
"keyVaultTenant": "[subscription().tenantId]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.MachineLearningServices/workspaces",
|
||||
"name": "[parameters('name')]",
|
||||
"apiVersion": "[parameters('machineLearningApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"identity": {
|
||||
"type": "systemAssigned"
|
||||
},
|
||||
"properties": {
|
||||
"containerRegistry": "[variables('containerRegistryId')]",
|
||||
"descsription": "[parameters('description')]",
|
||||
"friendlyName": "[parameters('friendlyName')]",
|
||||
"keyVault": "[variables('keyVaultId')]",
|
||||
"storageAccount": "[variables('storageAccountId')]",
|
||||
"applicationInsights": "[variables('appInsightsId')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[variables('containerRegistryId')]",
|
||||
"[variables('keyVaultId')]",
|
||||
"[variables('storageAccountId')]",
|
||||
"[variables('appInsightsId')]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Storage/storageAccounts",
|
||||
"sku": {
|
||||
"name": "[variables('newStorageAccountType')]"
|
||||
},
|
||||
"kind": "Storage",
|
||||
"name": "[variables('newStorageAccountName')]",
|
||||
"apiVersion": "[variables('storageApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"supportsHttpsTrafficOnly": true,
|
||||
"encryption": {
|
||||
"keySource": "Microsoft.Storage",
|
||||
"services": {
|
||||
"blob": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.ContainerRegistry/registries",
|
||||
"sku": {
|
||||
"name": "[variables('newContainerRegistryType')]"
|
||||
},
|
||||
"kind": "Registry",
|
||||
"name": "[variables('newContainerRegistryName')]",
|
||||
"apiVersion": "[variables('containerRegistryApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"adminUserEnabled": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.KeyVault/vaults",
|
||||
"name": "[variables('keyVaultName')]",
|
||||
"apiVersion": "[variables('keyVaultApiVersion')]",
|
||||
"location": "[parameters('location')]",
|
||||
"properties": {
|
||||
"accessPolicies": [],
|
||||
"enabledForDeployment": true,
|
||||
"enabledForTemplateDeployment": true,
|
||||
"enabledForVolumeEncryption": true,
|
||||
"sku": {
|
||||
"name": "standard",
|
||||
"family": "A"
|
||||
},
|
||||
"tenantId": "[variables('keyVaultTenant')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Microsoft.Insights/components",
|
||||
"kind": "[variables('appInsightsKind')]",
|
||||
"name": "[variables('appInsightsName')]",
|
||||
"apiVersion": "[variables('appInsightsApiVersion')]",
|
||||
"location": "[variables('appInsightsLocation')]",
|
||||
"properties": {
|
||||
"Application_Type": "[variables('appInsightsType')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2017-05-10",
|
||||
"name": "linkedTemplate",
|
||||
"type": "Microsoft.Resources/deployments",
|
||||
"condition": "[greater(parameters('numberOfDevInstances'), 0)]",
|
||||
"properties": {
|
||||
"mode": "Incremental",
|
||||
"templateLink": {
|
||||
"uri":"https://raw.githubusercontent.com/Azure/DataScienceVM/master/Scripts/AzureML/CreateUbuntuDSVMWithMSI.json",
|
||||
"contentVersion":"1.0.0.0"
|
||||
},
|
||||
"parameters": {
|
||||
"adminUserName":{"value": "[parameters('vmAdminUsername')]"},
|
||||
"adminPassword": {"value": "[parameters('vmAdminPassword')]"},
|
||||
"numberOfInstances":{"value": "[parameters('numberOfDevInstances')]"},
|
||||
"vmName":{"value": "[parameters('vmName')]"},
|
||||
"vmSize":{"value": "[parameters('vmSize')]"}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,258 @@
|
|||
{
|
||||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"adminUsername": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Username for the Virtual Machine."
|
||||
}
|
||||
},
|
||||
"adminPassword": {
|
||||
"type": "securestring",
|
||||
"metadata": {
|
||||
"description": "Password for the Virtual Machine."
|
||||
}
|
||||
},
|
||||
"numberOfInstances": {
|
||||
"type": "int",
|
||||
"defaultValue": 1,
|
||||
"metadata": {
|
||||
"description": "Number of VMs to deploy."
|
||||
}
|
||||
},
|
||||
"loc": {
|
||||
"type": "string",
|
||||
"defaultValue": "[resourceGroup().location]",
|
||||
"metadata": {
|
||||
"description": "Region to deploy."
|
||||
}
|
||||
},
|
||||
"vmName": {
|
||||
"type": "string",
|
||||
"metadata": {
|
||||
"description": "Name Prefix for the Virtual Machine."
|
||||
}
|
||||
},
|
||||
"vmSize": {
|
||||
"type": "string",
|
||||
"defaultValue": "Standard_NC6",
|
||||
"metadata": {
|
||||
"description": "Size for the Virtual Machine."
|
||||
}
|
||||
}
|
||||
},
|
||||
"variables": {
|
||||
"location": "[parameters('loc')]",
|
||||
"Contributor": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', 'b24988ac-6180-42a0-ab88-20f7382dd24c')]",
|
||||
"numberOfInstances": "[int(parameters('numberOfInstances'))]",
|
||||
"imagePublisher": "microsoft-dsvm",
|
||||
"imageOffer": "linux-data-science-vm-ubuntu",
|
||||
"OSDiskName": "osdiskforlinuxsimple",
|
||||
"DataDiskName": "datadiskforlinuxsimple",
|
||||
"sku": "linuxdsvmubuntu",
|
||||
"nicName": "[parameters('vmName')]",
|
||||
"addressPrefix": "10.0.0.0/16",
|
||||
"subnetName": "Subnet",
|
||||
"subnetPrefix": "10.0.0.0/24",
|
||||
"storageAccountType": "Standard_LRS",
|
||||
"publicIPAddressType": "Dynamic",
|
||||
"publicIPAddressName": "[parameters('vmName')]",
|
||||
"vmStorageAccountContainerName": "vhds",
|
||||
"vmName": "[parameters('vmName')]",
|
||||
"vmSize": "[parameters('vmSize')]",
|
||||
"virtualNetworkName": "[parameters('vmName')]",
|
||||
"nsgName": "[concat(parameters('vmName'),'-nsg')]",
|
||||
"nsgId": "[resourceId(resourceGroup().name, 'Microsoft.Network/networkSecurityGroups', variables('nsgName'))]",
|
||||
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
|
||||
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "2018-02-01",
|
||||
"type": "Microsoft.Network/networkSecurityGroups",
|
||||
"location": "[variables('location')]",
|
||||
"name": "[variables('nsgName')]",
|
||||
"properties": {
|
||||
"securityRules": [
|
||||
{
|
||||
"name": "Allow-SSH-Jupyterhub",
|
||||
"properties": {
|
||||
"protocol": "Tcp",
|
||||
"sourcePortRange": "*",
|
||||
"sourceAddressPrefix": "*",
|
||||
"destinationAddressPrefix": "*",
|
||||
"access": "Allow",
|
||||
"priority": 100,
|
||||
"direction": "Inbound",
|
||||
"sourcePortRanges": [],
|
||||
"destinationPortRanges": [
|
||||
"22",
|
||||
"8000"
|
||||
],
|
||||
"destinationPortRange": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/publicIPAddresses",
|
||||
"name": "[concat(variables('publicIPAddressName'), copyindex())]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "publicIPLoop",
|
||||
"count": "[variables('numberOfInstances')]"
|
||||
},
|
||||
"properties": {
|
||||
"publicIPAllocationMethod": "[variables('publicIPAddressType')]",
|
||||
"dnsSettings": {
|
||||
"domainNameLabel": "[concat(variables('publicIPAddressName'), copyindex())]"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/virtualNetworks",
|
||||
"name": "[variables('virtualNetworkName')]",
|
||||
"location": "[variables('location')]",
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"addressSpace": {
|
||||
"addressPrefixes": [
|
||||
"[variables('addressPrefix')]"
|
||||
]
|
||||
},
|
||||
"subnets": [
|
||||
{
|
||||
"name": "[variables('subnetName')]",
|
||||
"properties": {
|
||||
"addressPrefix": "[variables('subnetPrefix')]",
|
||||
"networkSecurityGroup": {
|
||||
"id": "[variables('nsgId')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2015-05-01-preview",
|
||||
"type": "Microsoft.Network/networkInterfaces",
|
||||
"name": "[concat(variables('nicName'), copyindex())]",
|
||||
"location": "[variables('location')]",
|
||||
"copy": {
|
||||
"name": "nicLoop",
|
||||
"count": "[variables('numberOfInstances')]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/publicIPAddresses/', concat(variables('publicIPAddressName'),copyindex()))]",
|
||||
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"ipConfigurations": [
|
||||
{
|
||||
"name": "ipconfig1",
|
||||
"properties": {
|
||||
"privateIPAllocationMethod": "Dynamic",
|
||||
"publicIPAddress": {
|
||||
"id": "[resourceId('Microsoft.Network/publicIPAddresses',concat(variables('publicIPAddressName'),copyindex()))]"
|
||||
},
|
||||
"subnet": {
|
||||
"id": "[variables('subnetRef')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "2017-09-01",
|
||||
"type": "Microsoft.Authorization/roleAssignments",
|
||||
"name": "[guid(concat(variables('vmName'), '-ra-', copyindex()))]",
|
||||
"copy": {
|
||||
"name": "roleLoop",
|
||||
"count": "[variables('numberOfInstances')]"
|
||||
},
|
||||
"properties": {
|
||||
"roleDefinitionId": "[variables('Contributor')]",
|
||||
"principalId": "[reference(concat(resourceId('Microsoft.Compute/virtualMachines/', concat(variables('vmName'), copyindex())),'/providers/Microsoft.ManagedIdentity/Identities/default'),'2015-08-31-PREVIEW').principalId]",
|
||||
"scope": "[resourceGroup().id]"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'),copyindex())]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"apiVersion": "2018-06-01",
|
||||
"type": "Microsoft.Compute/virtualMachines",
|
||||
"name": "[concat(variables('vmName'), copyIndex())]",
|
||||
"location": "[variables('location')]",
|
||||
"identity": {
|
||||
"type": "SystemAssigned"
|
||||
},
|
||||
"copy": {
|
||||
"name": "virtualMachineLoop",
|
||||
"count": "[variables('numberOfInstances')]"
|
||||
},
|
||||
"tags": {
|
||||
"Application": "AzureML"
|
||||
},
|
||||
"dependsOn": [
|
||||
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'), copyindex())]"
|
||||
],
|
||||
"properties": {
|
||||
"hardwareProfile": {
|
||||
"vmSize": "[variables('vmSize')]"
|
||||
},
|
||||
"osProfile": {
|
||||
"computerName": "[concat(variables('vmName'), copyIndex())]",
|
||||
"adminUsername": "[parameters('adminUsername')]",
|
||||
"adminPassword": "[parameters('adminPassword')]"
|
||||
},
|
||||
"storageProfile": {
|
||||
"imageReference": {
|
||||
"publisher": "[variables('imagePublisher')]",
|
||||
"offer": "[variables('imageOffer')]",
|
||||
"sku": "[variables('sku')]",
|
||||
"version": "latest"
|
||||
},
|
||||
"osDisk": {
|
||||
"managedDisk": {
|
||||
"storageAccountType": "Standard_LRS"
|
||||
},
|
||||
"createOption": "FromImage"
|
||||
},
|
||||
"dataDisks": [
|
||||
{
|
||||
"managedDisk": {
|
||||
"storageAccountType": "Standard_LRS"
|
||||
},
|
||||
"createOption": "FromImage",
|
||||
"lun": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkProfile": {
|
||||
"networkInterfaces": [
|
||||
{
|
||||
"id": "[resourceId('Microsoft.Network/networkInterfaces',concat(variables('nicName'), copyindex()))]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"diagnosticsProfile": {
|
||||
"bootDiagnostics": {
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"firstDataScienceVmUrl": { "type": "string", "value": "[concat('https://ms.portal.azure.com/#resource/subscriptions/', subscription().subscriptionId, '/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Compute/virtualMachines/', variables('vmName'), '0')]" },
|
||||
"numInstances": { "type": "string", "value": "[parameters('numberOfInstances')]" }
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче