Skip to content

Commit

Permalink
Updated template to use Managed disks
Browse files Browse the repository at this point in the history
  • Loading branch information
varunbeesu committed May 25, 2018
1 parent 80b3bf0 commit f5fa93b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
31 changes: 13 additions & 18 deletions active-directory-new-domain-ha-2-dc/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,15 @@
{
"name": "[variables('adAvailabilitySetName')]",
"type": "Microsoft.Compute/availabilitySets",
"apiVersion": "2016-03-30",
"location": "[parameters('location')]"
"apiVersion": "2017-12-01",
"location": "[parameters('location')]",
"sku": {
"name": "Aligned"
},
"properties": {
"platformFaultDomainCount": 2,
"platformUpdateDomainCount": 5
}
},
{
"name": "VNet",
Expand Down Expand Up @@ -286,7 +293,7 @@
{
"name": "[variables('adPDCVMName')]",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2016-03-30",
"apiVersion": "2017-03-30",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts',variables('vhdStorageAccountName'))]",
Expand Down Expand Up @@ -314,18 +321,12 @@
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('vhdStorageAccountName'))).primaryEndpoints.blob,'vhds0/','osdisk.vhd')]"
},
"name": "[concat(variables('adPDCVMName'),'_osdisk')]",
"caching": "ReadWrite",
"createOption": "FromImage"
},
"dataDisks": [
{
"vhd": {
"uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('vhdStorageAccountName'))).primaryEndpoints.blob,'vhds0/', variables('adPDCDataDisk'),'-1.vhd')]"
},
"name": "[concat(variables('adPDCVMName'),'-data-disk1')]",
"caching": "None",
"diskSizeGB": "[variables('adDataDiskSize')]",
Expand Down Expand Up @@ -463,7 +464,7 @@
{
"name": "[variables('adBDCVMName')]",
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2016-03-30",
"apiVersion": "2017-03-30",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts',variables('vhdStorageAccountName'))]",
Expand Down Expand Up @@ -491,18 +492,12 @@
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('vhdStorageAccountName'))).primaryEndpoints.blob,'vhds1/','osdisk.vhd')]"
},
"name": "[concat(variables('adBDCVMName'),'_osdisk')]",
"caching": "ReadWrite",
"createOption": "FromImage"
},
"dataDisks": [
{
"vhd": {
"uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('vhdStorageAccountName'))).primaryEndpoints.blob,'vhds1/',variables('adBDCDataDisk'),'-1.vhd')]"
},
"name": "[concat(variables('adBDCVMName'),'-data-disk1')]",
"caching": "None",
"diskSizeGB": "[variables('adDataDiskSize')]",
Expand Down
3 changes: 2 additions & 1 deletion active-directory-new-domain-ha-2-dc/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
"itemDisplayName": "Create an new AD Domain with 2 Domain Controllers",
"description": "This template creates 2 new VMs to be AD DCs (primary and backup) for a new Forest and Domain",
"summary": "This template creates 2 Azure VMs with AD",
"githubUsername": "simongdavies",
"dateUpdated": "2017-04-14"
"dateUpdated": "2018-05-23"
}

0 comments on commit f5fa93b

Please sign in to comment.