-
Notifications
You must be signed in to change notification settings - Fork 9
/
azure-deploy.json
107 lines (107 loc) · 4.36 KB
/
azure-deploy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"defaultValue": "demouser",
"metadata": {
"description": "The name of the administrator account of the new VM and domain"
}
},
"adminPassword": {
"type": "securestring",
"defaultValue": "demo@pass123",
"metadata": {
"description": "The password for the administrator account of the new VM and domain"
}
},
"domainName": {
"type": "string",
"defaultValue": "contoso.com",
"metadata": {
"description": "The FQDN of the Active Directory Domain to be created"
}
}
},
"variables": {
"baseUri": "https://raw.githubusercontent.com/opsgility/cw-building-resilient-iaas-architecture/master/",
"ADInstallScript":"https://raw.githubusercontent.com/opsgility/cw-building-resilient-iaas-architecture/master/script-extensions/deploy-ad.ps1",
"ADJoinScript":"https://raw.githubusercontent.com/opsgility/introduction-to-nested-templates/master/script-extensions/domain-join.ps1"
},
"resources": [
{
"name": "VirtualNetwork",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2016-09-01",
"dependsOn": [],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUri'), '/', 'nested-templates/vnet.json')]",
"contentVersion": "1.0.0.0"
}
}
},
{
"name": "ActiveDirectory",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2016-09-01",
"dependsOn": [
"Microsoft.Resources/deployments/VirtualNetwork"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUri'), '/', 'nested-templates/active-directory.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"adminUserName": {
"value": "[parameters('adminUserName')]"
},
"adminPassword": {
"value": "[parameters('adminPassword')]"
},
"domainName": {
"value": "[parameters('domainName')]"
},
"adInstallScriptUrl": {
"value": "[variables('ADInstallScript')]"
}
}
}
},
{
"name": "VirtualNetworkWithDNS",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2016-09-01",
"dependsOn": [
"Microsoft.Resources/deployments/ActiveDirectory"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUri'), '/', 'nested-templates/vnet-with-dns.json')]",
"contentVersion": "1.0.0.0"
}
}
},
{
"name": "CloudShop",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2016-09-01",
"dependsOn": [
"Microsoft.Resources/deployments/VirtualNetwork"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('baseUri'), '/', 'nested-templates/CloudShopRG.json')]",
"contentVersion": "1.0.0.0"
}
}
}
],
"outputs": {}
}