Made parameter names consistent

This commit is contained in:
yueguoguo 2017-06-21 15:52:35 +08:00
Родитель f120e331c4
Коммит 1a4233925d
9 изменённых файлов: 192 добавлений и 192 удалений

Просмотреть файл

@ -8,28 +8,28 @@
"adminUsername": { "adminUsername": {
"value": "<USER>" "value": "<USER>"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"value": "<PWD>" "value": "<PWD>"
}, },
"virtualMachines_newdsvm_adminPublicKey": { "virtualMachines_adminPublicKey": {
"value": "<PUBKEY>" "value": "<PUBKEY>"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"value": "<DEFAULT>" "value": "<DEFAULT>"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"value": "<DEFAULT>nic" "value": "<DEFAULT>nic"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"value": "<DEFAULT>sg" "value": "<DEFAULT>sg"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"value": "<DEFAULT>ip" "value": "<DEFAULT>ip"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"value": "<DEFAULT>vnet" "value": "<DEFAULT>vnet"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"value": "<DEFAULT>sa" "value": "<DEFAULT>sa"
} }
} }

Просмотреть файл

@ -39,7 +39,7 @@
"type": "String" "type": "String"
}, },
"storageAccounts_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
}, },
"extensions_DSVMDeepLearning_name": { "extensions_DSVMDeepLearning_name": {

Просмотреть файл

@ -15,39 +15,39 @@
"defaultValue": null, "defaultValue": null,
"type": "String" "type": "String"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"defaultValue": "newdsvm", "defaultValue": "newdsvm",
"type": "String" "type": "String"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"defaultValue": "newdsvm161", "defaultValue": "newdsvm-ni",
"type": "String" "type": "String"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"defaultValue": "newdsvm-nsg", "defaultValue": "newdsvm-nsg",
"type": "String" "type": "String"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"defaultValue": "newdsvm-ip", "defaultValue": "newdsvm-ip",
"type": "String" "type": "String"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"defaultValue": "dsvm-vnet", "defaultValue": "dsvm-vnet",
"type": "String" "type": "String"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Compute/virtualMachines", "type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"apiVersion": "2015-06-15", "apiVersion": "2015-06-15",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"plan": { "plan": {
@ -67,47 +67,47 @@
"version": "latest" "version": "latest"
}, },
"osDisk": { "osDisk": {
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'20168192442.vhd'))]"
}, },
"caching": "ReadWrite" "caching": "ReadWrite"
}, },
"dataDisks": [ "dataDisks": [
{ {
"lun": 0, "lun": 0,
"name": "[concat(parameters('virtualMachines_newdsvm_name'),'-disk-1')]", "name": "[concat(parameters('virtualMachines_name'),'-disk-1')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'-disk-1-20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'-disk-1-20168192442.vhd'))]"
}, },
"caching": "None" "caching": "None"
} }
] ]
}, },
"osProfile": { "osProfile": {
"computerName": "[parameters('virtualMachines_newdsvm_name')]", "computerName": "[parameters('virtualMachines_name')]",
"adminUsername": "[parameters('adminUsername')]", "adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('virtualMachines_newdsvm_adminPassword')]" "adminPassword": "[parameters('virtualMachines_adminPassword')]"
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [
{ {
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
} }
] ]
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_dsvmdisks490_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('networkInterfaces_newdsvm161_name')]", "name": "[parameters('networkInterfaces_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -118,10 +118,10 @@
"privateIPAddress": "10.0.0.4", "privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic", "privateIPAllocationMethod": "Dynamic",
"publicIPAddress": { "publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]" "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
}, },
"subnet": { "subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name')), '/subnets/default')]" "id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
} }
} }
} }
@ -131,19 +131,19 @@
}, },
"enableIPForwarding": false, "enableIPForwarding": false,
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]", "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name'))]", "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('networkSecurityGroups_newdsvm_nsg_name')]", "name": "[parameters('networkSecurityGroups_nsg_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -220,7 +220,7 @@
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIPAddresses_newdsvm_ip_name')]", "name": "[parameters('publicIPAddresses_ip_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -235,7 +235,7 @@
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_dsvm_vnet_name')]", "name": "[parameters('virtualNetworks_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -263,7 +263,7 @@
"tier": "Standard" "tier": "Standard"
}, },
"kind": "Storage", "kind": "Storage",
"name": "[parameters('storageAccounts_dsvmdisks490_name')]", "name": "[parameters('storageAccounts_name')]",
"apiVersion": "2016-01-01", "apiVersion": "2016-01-01",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"tags": {}, "tags": {},

Просмотреть файл

@ -15,43 +15,43 @@
"defaultValue": null, "defaultValue": null,
"type": "String" "type": "String"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_adminPublicKey": { "virtualMachines_adminPublicKey": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"defaultValue": "newdsvm", "defaultValue": "newdsvm",
"type": "String" "type": "String"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"defaultValue": "newdsvm161", "defaultValue": "newdsvm-ni",
"type": "String" "type": "String"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"defaultValue": "newdsvm-nsg", "defaultValue": "newdsvm-nsg",
"type": "String" "type": "String"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"defaultValue": "newdsvm-ip", "defaultValue": "newdsvm-ip",
"type": "String" "type": "String"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"defaultValue": "dsvm-vnet", "defaultValue": "dsvm-vnet",
"type": "String" "type": "String"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Compute/virtualMachines", "type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"apiVersion": "2015-06-15", "apiVersion": "2015-06-15",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"plan": { "plan": {
@ -71,27 +71,27 @@
"version": "latest" "version": "latest"
}, },
"osDisk": { "osDisk": {
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'20168192442.vhd'))]"
}, },
"caching": "ReadWrite" "caching": "ReadWrite"
}, },
"dataDisks": [ "dataDisks": [
{ {
"lun": 0, "lun": 0,
"name": "[concat(parameters('virtualMachines_newdsvm_name'),'-disk-1')]", "name": "[concat(parameters('virtualMachines_name'),'-disk-1')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'-disk-1-20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'-disk-1-20168192442.vhd'))]"
}, },
"caching": "None" "caching": "None"
} }
] ]
}, },
"osProfile": { "osProfile": {
"computerName": "[parameters('virtualMachines_newdsvm_name')]", "computerName": "[parameters('virtualMachines_name')]",
"adminUsername": "[parameters('adminUsername')]", "adminUsername": "[parameters('adminUsername')]",
"linuxConfiguration": { "linuxConfiguration": {
"disablePasswordAuthentication": true, "disablePasswordAuthentication": true,
@ -99,30 +99,30 @@
"publicKeys": [ "publicKeys": [
{ {
"path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]", "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
"keyData": "[parameters('virtualMachines_newdsvm_adminPublicKey')]" "keyData": "[parameters('virtualMachines_adminPublicKey')]"
} }
] ]
} }
}, },
"adminPassword": "[parameters('virtualMachines_newdsvm_adminPassword')]" "adminPassword": "[parameters('virtualMachines_adminPassword')]"
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [
{ {
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
} }
] ]
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_dsvmdisks490_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('networkInterfaces_newdsvm161_name')]", "name": "[parameters('networkInterfaces_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -133,10 +133,10 @@
"privateIPAddress": "10.0.0.4", "privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic", "privateIPAllocationMethod": "Dynamic",
"publicIPAddress": { "publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]" "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
}, },
"subnet": { "subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name')), '/subnets/default')]" "id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
} }
} }
} }
@ -146,19 +146,19 @@
}, },
"enableIPForwarding": false, "enableIPForwarding": false,
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]", "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name'))]", "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('networkSecurityGroups_newdsvm_nsg_name')]", "name": "[parameters('networkSecurityGroups_nsg_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -235,7 +235,7 @@
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIPAddresses_newdsvm_ip_name')]", "name": "[parameters('publicIPAddresses_ip_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -250,7 +250,7 @@
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_dsvm_vnet_name')]", "name": "[parameters('virtualNetworks_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -278,7 +278,7 @@
"tier": "Standard" "tier": "Standard"
}, },
"kind": "Storage", "kind": "Storage",
"name": "[parameters('storageAccounts_dsvmdisks490_name')]", "name": "[parameters('storageAccounts_name')]",
"apiVersion": "2016-01-01", "apiVersion": "2016-01-01",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"tags": {}, "tags": {},

Просмотреть файл

@ -15,43 +15,43 @@
"defaultValue": null, "defaultValue": null,
"type": "String" "type": "String"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_adminPublicKey": { "virtualMachines_adminPublicKey": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"defaultValue": "newdsvm", "defaultValue": "newdsvm",
"type": "String" "type": "String"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"defaultValue": "newdsvm161", "defaultValue": "newdsvm-ni",
"type": "String" "type": "String"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"defaultValue": "newdsvm-nsg", "defaultValue": "newdsvm-nsg",
"type": "String" "type": "String"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"defaultValue": "newdsvm-ip", "defaultValue": "newdsvm-ip",
"type": "String" "type": "String"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"defaultValue": "dsvm-vnet", "defaultValue": "dsvm-vnet",
"type": "String" "type": "String"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Compute/virtualMachines", "type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"apiVersion": "2016-04-30-preview", "apiVersion": "2016-04-30-preview",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"plan": { "plan": {
@ -71,27 +71,27 @@
"version": "latest" "version": "latest"
}, },
"osDisk": { "osDisk": {
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'20168192442.vhd'))]"
}, },
"caching": "ReadWrite" "caching": "ReadWrite"
}, },
"dataDisks": [ "dataDisks": [
{ {
"lun": 0, "lun": 0,
"name": "[concat(parameters('virtualMachines_newdsvm_name'),'-disk-1')]", "name": "[concat(parameters('virtualMachines_name'),'-disk-1')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'-disk-1-20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'-disk-1-20168192442.vhd'))]"
}, },
"caching": "None" "caching": "None"
} }
] ]
}, },
"osProfile": { "osProfile": {
"computerName": "[parameters('virtualMachines_newdsvm_name')]", "computerName": "[parameters('virtualMachines_name')]",
"adminUsername": "[parameters('adminUsername')]", "adminUsername": "[parameters('adminUsername')]",
"linuxConfiguration": { "linuxConfiguration": {
"disablePasswordAuthentication": true, "disablePasswordAuthentication": true,
@ -99,30 +99,30 @@
"publicKeys": [ "publicKeys": [
{ {
"path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]", "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
"keyData": "[parameters('virtualMachines_newdsvm_adminPublicKey')]" "keyData": "[parameters('virtualMachines_adminPublicKey')]"
} }
] ]
} }
}, },
"adminPassword": "[parameters('virtualMachines_newdsvm_adminPassword')]" "adminPassword": "[parameters('virtualMachines_adminPassword')]"
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [
{ {
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
} }
] ]
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_dsvmdisks490_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('networkInterfaces_newdsvm161_name')]", "name": "[parameters('networkInterfaces_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -133,10 +133,10 @@
"privateIPAddress": "10.0.0.4", "privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic", "privateIPAllocationMethod": "Dynamic",
"publicIPAddress": { "publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]" "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
}, },
"subnet": { "subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name')), '/subnets/default')]" "id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
} }
} }
} }
@ -146,19 +146,19 @@
}, },
"enableIPForwarding": false, "enableIPForwarding": false,
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]", "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name'))]", "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('networkSecurityGroups_newdsvm_nsg_name')]", "name": "[parameters('networkSecurityGroups_nsg_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -248,7 +248,7 @@
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIPAddresses_newdsvm_ip_name')]", "name": "[parameters('publicIPAddresses_ip_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -263,7 +263,7 @@
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_dsvm_vnet_name')]", "name": "[parameters('virtualNetworks_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -291,7 +291,7 @@
"tier": "Standard" "tier": "Standard"
}, },
"kind": "Storage", "kind": "Storage",
"name": "[parameters('storageAccounts_dsvmdisks490_name')]", "name": "[parameters('storageAccounts_name')]",
"apiVersion": "2016-01-01", "apiVersion": "2016-01-01",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"tags": {}, "tags": {},

Просмотреть файл

@ -15,39 +15,39 @@
"defaultValue": null, "defaultValue": null,
"type": "String" "type": "String"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"defaultValue": "newdsvm", "defaultValue": "newdsvm",
"type": "String" "type": "String"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"defaultValue": "newdsvm161", "defaultValue": "newdsvm-ni",
"type": "String" "type": "String"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"defaultValue": "newdsvm-nsg", "defaultValue": "newdsvm-nsg",
"type": "String" "type": "String"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"defaultValue": "newdsvm-ip", "defaultValue": "newdsvm-ip",
"type": "String" "type": "String"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"defaultValue": "dsvm-vnet", "defaultValue": "dsvm-vnet",
"type": "String" "type": "String"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Compute/virtualMachines", "type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"apiVersion": "2016-04-30-preview", "apiVersion": "2016-04-30-preview",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"plan": { "plan": {
@ -67,47 +67,47 @@
"version": "latest" "version": "latest"
}, },
"osDisk": { "osDisk": {
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'20168192442.vhd'))]"
}, },
"caching": "ReadWrite" "caching": "ReadWrite"
}, },
"dataDisks": [ "dataDisks": [
{ {
"lun": 0, "lun": 0,
"name": "[concat(parameters('virtualMachines_newdsvm_name'),'-disk-1')]", "name": "[concat(parameters('virtualMachines_name'),'-disk-1')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'-disk-1-20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'-disk-1-20168192442.vhd'))]"
}, },
"caching": "None" "caching": "None"
} }
] ]
}, },
"osProfile": { "osProfile": {
"computerName": "[parameters('virtualMachines_newdsvm_name')]", "computerName": "[parameters('virtualMachines_name')]",
"adminUsername": "[parameters('adminUsername')]", "adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('virtualMachines_newdsvm_adminPassword')]" "adminPassword": "[parameters('virtualMachines_adminPassword')]"
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [
{ {
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
} }
] ]
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_dsvmdisks490_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('networkInterfaces_newdsvm161_name')]", "name": "[parameters('networkInterfaces_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -118,10 +118,10 @@
"privateIPAddress": "10.0.0.4", "privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic", "privateIPAllocationMethod": "Dynamic",
"publicIPAddress": { "publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]" "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
}, },
"subnet": { "subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name')), '/subnets/default')]" "id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
} }
} }
} }
@ -131,19 +131,19 @@
}, },
"enableIPForwarding": false, "enableIPForwarding": false,
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]", "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name'))]", "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('networkSecurityGroups_newdsvm_nsg_name')]", "name": "[parameters('networkSecurityGroups_nsg_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -233,7 +233,7 @@
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIPAddresses_newdsvm_ip_name')]", "name": "[parameters('publicIPAddresses_ip_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -248,7 +248,7 @@
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_dsvm_vnet_name')]", "name": "[parameters('virtualNetworks_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -276,7 +276,7 @@
"tier": "Standard" "tier": "Standard"
}, },
"kind": "Storage", "kind": "Storage",
"name": "[parameters('storageAccounts_dsvmdisks490_name')]", "name": "[parameters('storageAccounts_name')]",
"apiVersion": "2016-01-01", "apiVersion": "2016-01-01",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"tags": {}, "tags": {},

Просмотреть файл

@ -15,43 +15,43 @@
"defaultValue": null, "defaultValue": null,
"type": "String" "type": "String"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_adminPublicKey": { "virtualMachines_adminPublicKey": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"defaultValue": "newdsvm", "defaultValue": "newdsvm",
"type": "String" "type": "String"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"defaultValue": "newdsvm161", "defaultValue": "newdsvm-ni",
"type": "String" "type": "String"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"defaultValue": "newdsvm-nsg", "defaultValue": "newdsvm-nsg",
"type": "String" "type": "String"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"defaultValue": "newdsvm-ip", "defaultValue": "newdsvm-ip",
"type": "String" "type": "String"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"defaultValue": "dsvm-vnet", "defaultValue": "dsvm-vnet",
"type": "String" "type": "String"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Compute/virtualMachines", "type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"apiVersion": "2016-04-30-preview", "apiVersion": "2016-04-30-preview",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -66,16 +66,16 @@
"version": "latest" "version": "latest"
}, },
"osDisk": { "osDisk": {
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'20168192442.vhd'))]"
}, },
"caching": "ReadWrite" "caching": "ReadWrite"
} }
}, },
"osProfile": { "osProfile": {
"computerName": "[parameters('virtualMachines_newdsvm_name')]", "computerName": "[parameters('virtualMachines_name')]",
"adminUsername": "[parameters('adminUsername')]", "adminUsername": "[parameters('adminUsername')]",
"linuxConfiguration": { "linuxConfiguration": {
"disablePasswordAuthentication": true, "disablePasswordAuthentication": true,
@ -83,30 +83,30 @@
"publicKeys": [ "publicKeys": [
{ {
"path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]", "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
"keyData": "[parameters('virtualMachines_newdsvm_adminPublicKey')]" "keyData": "[parameters('virtualMachines_adminPublicKey')]"
} }
] ]
} }
}, },
"adminPassword": "[parameters('virtualMachines_newdsvm_adminPassword')]" "adminPassword": "[parameters('virtualMachines_adminPassword')]"
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [
{ {
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
} }
] ]
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_dsvmdisks490_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('networkInterfaces_newdsvm161_name')]", "name": "[parameters('networkInterfaces_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -117,10 +117,10 @@
"privateIPAddress": "10.0.0.4", "privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic", "privateIPAllocationMethod": "Dynamic",
"publicIPAddress": { "publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]" "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
}, },
"subnet": { "subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name')), '/subnets/default')]" "id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
} }
} }
} }
@ -130,19 +130,19 @@
}, },
"enableIPForwarding": false, "enableIPForwarding": false,
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]", "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name'))]", "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('networkSecurityGroups_newdsvm_nsg_name')]", "name": "[parameters('networkSecurityGroups_nsg_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -232,7 +232,7 @@
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIPAddresses_newdsvm_ip_name')]", "name": "[parameters('publicIPAddresses_ip_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -247,7 +247,7 @@
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_dsvm_vnet_name')]", "name": "[parameters('virtualNetworks_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"properties": { "properties": {
@ -275,7 +275,7 @@
"tier": "Standard" "tier": "Standard"
}, },
"kind": "Storage", "kind": "Storage",
"name": "[parameters('storageAccounts_dsvmdisks490_name')]", "name": "[parameters('storageAccounts_name')]",
"apiVersion": "2016-01-01", "apiVersion": "2016-01-01",
"location": "[resourceGroup().location]", "location": "[resourceGroup().location]",
"tags": {}, "tags": {},

Просмотреть файл

@ -15,39 +15,39 @@
"defaultValue": null, "defaultValue": null,
"type": "String" "type": "String"
}, },
"virtualMachines_newdsvm_adminPassword": { "virtualMachines_adminPassword": {
"defaultValue": null, "defaultValue": null,
"type": "SecureString" "type": "SecureString"
}, },
"virtualMachines_newdsvm_name": { "virtualMachines_name": {
"defaultValue": "newdsvm", "defaultValue": "newdsvm",
"type": "String" "type": "String"
}, },
"networkInterfaces_newdsvm161_name": { "networkInterfaces_name": {
"defaultValue": "newdsvm161", "defaultValue": "newdsvm-ni",
"type": "String" "type": "String"
}, },
"networkSecurityGroups_newdsvm_nsg_name": { "networkSecurityGroups_nsg_name": {
"defaultValue": "newdsvm-nsg", "defaultValue": "newdsvm-nsg",
"type": "String" "type": "String"
}, },
"publicIPAddresses_newdsvm_ip_name": { "publicIPAddresses_ip_name": {
"defaultValue": "newdsvm-ip", "defaultValue": "newdsvm-ip",
"type": "String" "type": "String"
}, },
"virtualNetworks_dsvm_vnet_name": { "virtualNetworks_name": {
"defaultValue": "dsvm-vnet", "defaultValue": "dsvm-vnet",
"type": "String" "type": "String"
}, },
"storageAccounts_dsvmdisks490_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Compute/virtualMachines", "type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"apiVersion": "2016-04-30-preview", "apiVersion": "2016-04-30-preview",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -62,36 +62,36 @@
"version": "latest" "version": "latest"
}, },
"osDisk": { "osDisk": {
"name": "[parameters('virtualMachines_newdsvm_name')]", "name": "[parameters('virtualMachines_name')]",
"createOption": "FromImage", "createOption": "FromImage",
"vhd": { "vhd": {
"uri": "[concat('https', '://', parameters('storageAccounts_dsvmdisks490_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_newdsvm_name'),'20168192442.vhd'))]" "uri": "[concat('https', '://', parameters('storageAccounts_name'), '.blob.core.windows.net', concat('/vhds/', parameters('virtualMachines_name'),'20168192442.vhd'))]"
}, },
"caching": "ReadWrite" "caching": "ReadWrite"
} }
}, },
"osProfile": { "osProfile": {
"computerName": "[parameters('virtualMachines_newdsvm_name')]", "computerName": "[parameters('virtualMachines_name')]",
"adminUsername": "[parameters('adminUsername')]", "adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('virtualMachines_newdsvm_adminPassword')]" "adminPassword": "[parameters('virtualMachines_adminPassword')]"
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [
{ {
"id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "id": "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
} }
] ]
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_dsvmdisks490_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_newdsvm161_name'))]" "[resourceId('Microsoft.Network/networkInterfaces', parameters('networkInterfaces_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkInterfaces", "type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('networkInterfaces_newdsvm161_name')]", "name": "[parameters('networkInterfaces_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -102,10 +102,10 @@
"privateIPAddress": "10.0.0.4", "privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic", "privateIPAllocationMethod": "Dynamic",
"publicIPAddress": { "publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]" "id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]"
}, },
"subnet": { "subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name')), '/subnets/default')]" "id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name')), '/subnets/default')]"
} }
} }
} }
@ -115,19 +115,19 @@
}, },
"enableIPForwarding": false, "enableIPForwarding": false,
"networkSecurityGroup": { "networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "id": "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
} }
}, },
"resources": [], "resources": [],
"dependsOn": [ "dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_newdsvm_ip_name'))]", "[resourceId('Microsoft.Network/publicIPAddresses', parameters('publicIPAddresses_ip_name'))]",
"[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_dsvm_vnet_name'))]", "[resourceId('Microsoft.Network/virtualNetworks', parameters('virtualNetworks_name'))]",
"[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_newdsvm_nsg_name'))]" "[resourceId('Microsoft.Network/networkSecurityGroups', parameters('networkSecurityGroups_nsg_name'))]"
] ]
}, },
{ {
"type": "Microsoft.Network/networkSecurityGroups", "type": "Microsoft.Network/networkSecurityGroups",
"name": "[parameters('networkSecurityGroups_newdsvm_nsg_name')]", "name": "[parameters('networkSecurityGroups_nsg_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -217,7 +217,7 @@
}, },
{ {
"type": "Microsoft.Network/publicIPAddresses", "type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('publicIPAddresses_newdsvm_ip_name')]", "name": "[parameters('publicIPAddresses_ip_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -232,7 +232,7 @@
}, },
{ {
"type": "Microsoft.Network/virtualNetworks", "type": "Microsoft.Network/virtualNetworks",
"name": "[parameters('virtualNetworks_dsvm_vnet_name')]", "name": "[parameters('virtualNetworks_name')]",
"apiVersion": "2016-03-30", "apiVersion": "2016-03-30",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -260,7 +260,7 @@
"tier": "Standard" "tier": "Standard"
}, },
"kind": "Storage", "kind": "Storage",
"name": "[parameters('storageAccounts_dsvmdisks490_name')]", "name": "[parameters('storageAccounts_name')]",
"apiVersion": "2016-01-01", "apiVersion": "2016-01-01",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"tags": {}, "tags": {},

Просмотреть файл

@ -39,7 +39,7 @@
"type": "String" "type": "String"
}, },
"storageAccounts_name": { "storageAccounts_name": {
"defaultValue": "dsvmdisks490", "defaultValue": "dsvmdisks",
"type": "String" "type": "String"
} }
}, },