зеркало из
1
0
Форкнуть 0
This commit is contained in:
Kay 2015-04-28 10:15:23 -07:00
Родитель 8d76970b41
Коммит 401ca6543d
2 изменённых файлов: 41 добавлений и 16 удалений

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

@ -1,17 +1,17 @@
{ {
"region": { "location": {
"value": "West US" "value": "West US"
}, },
"storageAccountName": { "newStorageAccountName": {
"value" : "coudf87" "value" : "kaystore2d"
}, },
"adminUsername": { "adminUsername": {
"value" : "cloudguy" "value" : "kay"
}, },
"adminPassword": { "adminPassword": {
"value": "abc_123!" "value": "abc_123!"
}, },
"dnsNameforLBIP": { "dnsNameforLBIP": {
"value": "coudf87" "value": "kaydns2"
} }
} }

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

@ -8,7 +8,7 @@
"description": "Location of resources" "description": "Location of resources"
} }
}, },
"storageAccountName": { "newStorageAccountName": {
"type": "string", "type": "string",
"metadata": { "metadata": {
"description": "Name of storage account" "description": "Name of storage account"
@ -46,9 +46,26 @@
"description": "Prefix to use for VM names" "description": "Prefix to use for VM names"
} }
}, },
"vmSourceImageName": { "imagePublisher": {
"type": "string", "type": "string",
"defaultValue": "a699494373c04fc0bc8f2bb1389d6106__Windows-Server-2012-R2-201412.01-en.us-127GB.vhd" "defaultValue": "MicrosoftWindowsServer",
"metadata": {
"description": "Image Publisher"
}
},
"imageOffer": {
"type": "string",
"defaultValue": "WindowsServer",
"metadata": {
"description": "Image Offer"
}
},
"imageSKU": {
"type": "string",
"defaultValue": "2012-R2-Datacenter",
"metadata": {
"description": "Image SKU"
}
}, },
"lbName": { "lbName": {
"type": "string", "type": "string",
@ -88,7 +105,6 @@
}, },
"variables": { "variables": {
"storageAccountType": "Standard_LRS", "storageAccountType": "Standard_LRS",
"vmStorageAccountContainerName": "vhds",
"availabilitySetName": "myAvSet", "availabilitySetName": "myAvSet",
"addressPrefix": "10.0.0.0/16", "addressPrefix": "10.0.0.0/16",
"subnetName": "Subnet-1", "subnetName": "Subnet-1",
@ -104,14 +120,13 @@
"frontEndIPConfigID": "[concat(variables('lbID'),'/frontendIPConfigurations/LBFE')]", "frontEndIPConfigID": "[concat(variables('lbID'),'/frontendIPConfigurations/LBFE')]",
"backEndIPConfigID1": "[concat(variables('nicId1'),'/ipConfigurations/ipconfig1')]", "backEndIPConfigID1": "[concat(variables('nicId1'),'/ipConfigurations/ipconfig1')]",
"backEndIPConfigID2": "[concat(variables('nicId2'),'/ipConfigurations/ipconfig1')]", "backEndIPConfigID2": "[concat(variables('nicId2'),'/ipConfigurations/ipconfig1')]",
"sourceImageName": "[concat('/', subscription().subscriptionId,'/services/images/',parameters('vmSourceImageName'))]",
"lbPoolID": "[concat(variables('lbID'),'/backendAddressPools/LBBE')]", "lbPoolID": "[concat(variables('lbID'),'/backendAddressPools/LBBE')]",
"lbProbeID": "[concat(variables('lbID'),'/probes/tcpProbe')]" "lbProbeID": "[concat(variables('lbID'),'/probes/tcpProbe')]"
}, },
"resources": [ "resources": [
{ {
"type": "Microsoft.Storage/storageAccounts", "type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('storageAccountName')]", "name": "[parameters('newStorageAccountName')]",
"apiVersion": "2015-05-01-preview", "apiVersion": "2015-05-01-preview",
"location": "[parameters('location')]", "location": "[parameters('location')]",
"properties": { "properties": {
@ -296,7 +311,7 @@
}, },
"location": "[parameters('location')]", "location": "[parameters('location')]",
"dependsOn": [ "dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', parameters('storageAccountName'))]", "[concat('Microsoft.Storage/storageAccounts/', parameters('newStorageAccountName'))]",
"[concat('Microsoft.Network/networkInterfaces/', parameters('nicNamePrefix'), copyindex())]", "[concat('Microsoft.Network/networkInterfaces/', parameters('nicNamePrefix'), copyindex())]",
"[concat('Microsoft.Compute/availabilitySets/', variables('availabilitySetName'))]" "[concat('Microsoft.Compute/availabilitySets/', variables('availabilitySetName'))]"
], ],
@ -313,10 +328,20 @@
"adminPassword": "[parameters('adminPassword')]" "adminPassword": "[parameters('adminPassword')]"
}, },
"storageProfile": { "storageProfile": {
"sourceImage": { "imageReference": {
"id": "[variables('sourceImageName')]" "publisher": "[parameters('imagePublisher')]",
}, "offer": "[parameters('imageOffer')]",
"destinationVhdsContainer": "[concat('http://',parameters('storageAccountName'),'.blob.core.windows.net/',variables('vmStorageAccountContainerName'),'/')]" "sku" : "[parameters('imageSKU')]",
"version":"latest"
},
"osDisk" : {
"name": "osdisk",
"vhd": {
"uri": "[concat('http://',parameters('newStorageAccountName'),'.blob.core.windows.net/vhds/','osdisk.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
}, },
"networkProfile": { "networkProfile": {
"networkInterfaces": [ "networkInterfaces": [