-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathAZ-140-NetworkHubBuild.json
130 lines (130 loc) · 4.66 KB
/
AZ-140-NetworkHubBuild.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"Domain": {
"type": "string"
},
"Environment": {
"type": "string",
"metadata": {
"description": "Determines the environment of the resource (e.g., 'd' for Development)"
},
"defaultValue": "d"
},
"Location": {
"type": "string",
"metadata": {
"description": "Location is used to specify the deployment location for each Resource"
},
"defaultValue": "eastus"
},
"LocationAbbr": {
"type": "string",
"metadata": {
"description": "Location Abbreviation is used to name Resources"
},
"defaultValue": "eus"
},
"Timestamp": {
"type": "string",
"defaultValue": "[utcNow()]"
},
"VmPassword": {
"type": "securestring",
"metadata": {
"description": "Password used for the Local Administrator, Domain Administrator, and User accounts"
}
},
"VmUsername": {
"type": "string",
"metadata": {
"description": "Local Adminstrator Username for the Domain Controllers"
}
}
},
"variables": {
"IpAddresses": [
"10.0.0.196",
"10.0.0.197"
]
},
"resources": [
{
"comments": "---------- LINKED DEPLOYMENT > NETWORK ----------",
"type": "Microsoft.Resources/deployments",
"name": "[concat('Network_',parameters('Timestamp'))]",
"apiVersion": "2019-10-01",
"resourceGroup": "[concat('rg-wth-network-', parameters('Environment'),'-', parameters('LocationAbbr'))]",
"properties": {
"expressionEvaluationOptions": {
"scope": "inner"
},
"mode": "Incremental",
"parameters": {
"Environment": {
"value": "[parameters('Environment')]"
},
"IpAddresses": {
"value": "[variables('IpAddresses')]"
},
"Location": {
"value": "[parameters('Location')]"
},
"LocationAbbr": {
"value": "[parameters('LocationAbbr')]"
}
},
"templateLink": {
"uri": "https://raw.githubusercontent.com/jamasten/WhatTheHack/main/templates/challenge-02_network.json"
}
}
},
{
"comments": "---------- LINKED DEPLOYMENT > IDENTITY ----------",
"type": "Microsoft.Resources/deployments",
"name": "[concat('Identity_',parameters('Timestamp'))]",
"apiVersion": "2019-10-01",
"dependsOn": [
"[concat('Network_', parameters('Timestamp'))]"
],
"resourceGroup": "[concat('rg-wth-identity-', parameters('Environment'),'-', parameters('LocationAbbr'))]",
"properties": {
"expressionEvaluationOptions": {
"scope": "inner"
},
"mode": "Incremental",
"parameters": {
"Domain": {
"value": "[parameters('Domain')]"
},
"Environment": {
"value": "[parameters('Environment')]"
},
"IpAddresses": {
"value": "[variables('IpAddresses')]"
},
"Location": {
"value": "[parameters('Location')]"
},
"LocationAbbr": {
"value": "[parameters('LocationAbbr')]"
},
"Timestamp": {
"value": "[parameters('Timestamp')]"
},
"VmPassword": {
"value": "[parameters('VmPassword')]"
},
"VmUsername": {
"value": "[parameters('VmUsername')]"
}
},
"templateLink": {
"uri": "https://raw.githubusercontent.com/jamasten/WhatTheHack/main/templates/challenge-02_identity.json"
}
}
}
],
"outputs": {}
}