-
Notifications
You must be signed in to change notification settings - Fork 0
/
createUiDefinition.json
313 lines (313 loc) · 10.8 KB
/
createUiDefinition.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"config": {
"isWizard": true,
"basics": {
"description": "**Microsoft Sentinel All-In-One** deployment, see more information about this project [here](https://github.com/Azure/Azure-Sentinel/Tools/Sentinel-All-In-One/).",
"location": {
"label": "Location",
"toolTip": "Location for all resources",
"resourceTypes": [
"Microsoft.OperationalInsights/workspaces"
]
}
}
},
"basics": [
{
"name": "location",
"type": "Microsoft.Common.TextBox",
"label": "Location",
"subLabel": "",
"defaultValue": "",
"toolTip": "Location for all resources.",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": []
},
"infoMessages": [],
"visible": true
},
{
"name": "workspaceName",
"type": "Microsoft.Common.TextBox",
"label": "Workspace Name",
"subLabel": "",
"defaultValue": "EditMe",
"toolTip": "Limit this to 3-12 characters - try using the convention FJ (Two characters for customer) (Two characters for user) e.g. FJCCJD (FJ Coca Cola John Doe)",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": [
{
"isValid": "[or(or(empty(steps('basics').workspaceName),and(not(startsWith(steps('basics').workspaceName,'[[')),startsWith(steps('basics').workspaceName,'['),endsWith(steps('basics').workspaceName,']'),greater(indexOf(steps('basics').workspaceName,'('),-1),greater(indexOf(steps('basics').workspaceName,')'),-1))),greaterOrEquals(length(steps('basics').workspaceName),3))]",
"message": "The value must have a length of at least 3."
},
{
"isValid": "[or(or(empty(steps('basics').workspaceName),and(not(startsWith(steps('basics').workspaceName,'[[')),startsWith(steps('basics').workspaceName,'['),endsWith(steps('basics').workspaceName,']'),greater(indexOf(steps('basics').workspaceName,'('),-1),greater(indexOf(steps('basics').workspaceName,')'),-1))),lessOrEquals(length(steps('basics').workspaceName),12))]",
"message": "The value must have a length of at most 12."
}
]
},
"infoMessages": [],
"visible": true
},
{
"name": "baseTime",
"type": "Microsoft.Common.TextBox",
"label": "Base Time",
"subLabel": "",
"defaultValue": "[[utcNow('O')]",
"toolTip": "",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": []
},
"infoMessages": [],
"visible": true
},
{
"name": "generalPrefix",
"type": "Microsoft.Common.TextBox",
"label": "General Prefix",
"subLabel": "",
"defaultValue": "FJ - ",
"toolTip": "",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": []
},
"infoMessages": [],
"visible": true
}
],
"steps": [
{
"name": "oos",
"label": "Out of scope",
"elements": [
{
"name": "legalAccept",
"type": "Microsoft.Common.CheckBox",
"label": "I understand that we aren't currently implementing these and i can ignore them.",
"constraints": {
"required": true,
"validationMessage": "Please acknowledge that you uinderstand these are not needed."
}
},
{
"name": "tiapi",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Tiapi",
"confirmPassword": "Confirm password"
},
"defaultValue": "123",
"toolTip": "",
"constraints": {
"required": true,
"regex": "",
"validationMessage": "",
"validations": []
},
"options": {
"hideConfirmation": true
},
"visible": true
},
{
"name": "notificationEmail",
"type": "Microsoft.Common.TextBox",
"label": "Notification Email",
"subLabel": "",
"defaultValue": "XX@XX.com",
"toolTip": "",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": []
},
"infoMessages": [],
"visible": true
}
]
},
{
"name": "connectors",
"label": "Connectors",
"elements": [
{
"name": "enableAzureAD",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure AD",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableAzureActivity",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure Activity",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableO365",
"type": "Microsoft.Common.CheckBox",
"label": "Enable O365",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableCloudAppSecurity",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Cloud App Security",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableAzureADIdentityProtection",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure AD Identity Protection",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableAzureDefender",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure Defender",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableAzureDefenderForIdentity",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure Defender For Identity",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableAzureDefenderForEndpoint",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure Defender For Endpoint",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
},
{
"name": "enableAzureSecurityCenter",
"type": "Microsoft.Common.CheckBox",
"label": "Enable Azure Security Center",
"constraints": {
"required": false,
"validationMessage": "Up to you if you want it enabled or not"
}
}
]
},
{
"name": "github",
"label": "Git Hub Stuff",
"elements": [
{
"name": "PvtGitCollector",
"type": "Microsoft.Common.TextBox",
"label": "Pvt Git Collector",
"subLabel": "",
"defaultValue": "XX",
"toolTip": "The GitHub Private Repository File Fetcher Web Service URI",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": []
},
"infoMessages": [],
"visible": true
},
{
"name": "_GitHubLocation",
"type": "Microsoft.Common.TextBox",
"label": "_Git Hub Location",
"subLabel": "",
"defaultValue": "XX",
"toolTip": "The base URI where artifacts required by this template are located",
"constraints": {
"required": false,
"regex": "",
"validationMessage": "",
"validations": []
},
"infoMessages": [],
"visible": true
},
{
"name": "_GitHubAccessToken",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "_Git Hub Access Token",
"confirmPassword": "Confirm password"
},
"defaultValue": "",
"toolTip": "",
"constraints": {
"required": true,
"regex": "",
"validationMessage": "",
"validations": []
},
"options": {
"hideConfirmation": true
},
"visible": true
}
]
}
],
"outputs": {
"location": "[basics('location')]",
"workspaceName": "[basics('workspaceName')]",
"baseTime": "[basics('baseTime')]",
"enableAzureAD": "[steps('connectors').enableAzureAD]",
"enableAzureActivity": "[steps('connectors').enableAzureActivity]",
"enableO365": "[steps('connectors').enableO365]",
"enableCloudAppSecurity": "[steps('connectors').enableCloudAppSecurity]",
"enableAzureADIdentityProtection": "[steps('connectors').enableAzureADIdentityProtection]",
"enableAzureDefender": "[steps('connectors').enableAzureDefender]",
"enableAzureDefenderForIdentity": "[steps('connectors').enableAzureDefenderForIdentity]",
"enableAzureDefenderForEndpoint": "[steps('connectors').enableAzureDefenderForEndpoint]",
"enableAzureSecurityCenter": "[steps('connectors').enableAzureSecurityCenter]",
"generalPrefix": "[basics('generalPrefix')]",
"tiapi": "[steps('oos').tiapi]",
"notificationEmail": "[steps('oos').notificationEmail]",
"PvtGitCollector": "[steps('github').PvtGitCollector]",
"_GitHubLocation": "[steps('github')._GitHubLocation]",
"_GitHubAccessToken": "[steps('github')._GitHubAccessToken]"
}
}
}