-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcreateUiDefinition.json
306 lines (306 loc) · 15.2 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
{
"$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": "## Security End User Notifications (SEEN) Deployment\n### Post Deployment \nAfter deploying this template, ensure to run the [setup.ps1](https://github.com/piaudonn/SecurityNotifications/blob/main/deploy/setup.ps1) script to grant permissions to the SEEN modules. It may take up to 1 hour for the permissions to become effective.",
"resourceGroup": {
"constraints": {
"validations": [
{
"permission": "Microsoft.Logic/workflows/write",
"message": "You must have permission to create and update Logic Apps"
},
{
"permission": "Microsoft.Storage/storageAccounts/write",
"message": "You must have permission to create and update Storage Accounts"
}
]
}
},
"location": {
"label": "Location",
"toolTip": "Location for all resources",
"resourceTypes": [
"Microsoft.Logic",
"Microsoft.Storage"
]
}
}
},
"basics": [],
"steps": [
{
"name": "deploymentTypeStep",
"label": "Deployment Type",
"elements": [
{
"name": "deployTextBlock2",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select the type of deployment you want for SEEN"
}
},
{
"name": "deployTextBlock3",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "A standard deployment allows you to deploy or update the entire SEEN solution with minimal input. An advanced deployment allows for additional configuration such as providing customized names to the Logic Apps.",
"link": {
"label": "Learn more",
"uri": "https://github.com/piaudonn/SecurityNotifications/tree/main/deploy"
}
}
},
{
"name": "deploymentType",
"type": "Microsoft.Common.OptionsGroup",
"label": "Select the deployment type",
"defaultValue": "Standard (recommended)",
"toolTip": "",
"constraints": {
"allowedValues": [
{
"label": "Standard (recommended)",
"value": "standard"
},
{
"label": "Advanced",
"value": "advanced"
}
],
"required": true
},
"visible": true
}
]
},
{
"name": "seenModules",
"label": "SEEN Setup",
"elements": [
{
"name": "standardSetup",
"type": "Microsoft.Common.Section",
"label": "Standard Setup - STAT",
"elements": [
{
"name": "textBlock1",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "The standard setup mode will deploy SEEN with default names and configuration",
"link": {
"label": "Learn more",
"uri": "https://github.com/piaudonn/SecurityNotifications"
}
}
}
],
"visible": "[if(equals(steps('deploymentTypeStep').deploymentType, 'standard'), true, false)]"
},
{
"name": "advancedSetup",
"type": "Microsoft.Common.Section",
"label": "Advanced Setup - STAT",
"elements": [
{
"name": "textBlock1",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "The Advanced Setup allows you to configure your own names for the resources created by this deployment. When updating the SEEN solution you must use the same names or new copies of the Logic Apps will be deployed.",
"link": {
"label": "Learn more",
"uri": "https://github.com/piaudonn/SecurityNotifications"
}
}
},
{
"name": "ConfigPlaybookName",
"type": "Microsoft.Common.TextBox",
"label": "Configuration Playbook Name",
"placeholder": "",
"defaultValue": "SEEN-Config",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "EmailPlaybookName",
"type": "Microsoft.Common.TextBox",
"label": "Email Notification Playbook Name",
"placeholder": "",
"defaultValue": "SEEN-SendEmail",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "MFAPlaybookName",
"type": "Microsoft.Common.TextBox",
"label": "MFA Playbook Name",
"placeholder": "",
"defaultValue": "SEEN-MFAMethods",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "TravelPlaybookName",
"type": "Microsoft.Common.TextBox",
"label": "Travel Playbook Name",
"placeholder": "",
"defaultValue": "SEEN-Travel",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "TAPPlaybookName",
"type": "Microsoft.Common.TextBox",
"label": "Temporary Access Pass Playbook Name",
"placeholder": "",
"defaultValue": "SEEN-TemporaryAccessPass",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "WorkbookName",
"type": "Microsoft.Common.TextBox",
"label": "SEEN Workbook Name",
"placeholder": "",
"defaultValue": "SEEN-Manage and monitor",
"toolTip": "",
"constraints": {},
"visible": true
},
{
"name": "enableDiagnostics",
"type": "Microsoft.Common.DropDown",
"label": "Enable Diagnostic Logging",
"placeholder": "",
"defaultValue": "True",
"toolTip": "",
"multiselect": false,
"selectAll": false,
"multiLine": false,
"constraints": {
"allowedValues": [
{
"label": "True",
"value": true
},
{
"label": "False",
"value": false
}
],
"required": true
},
"visible": true
},
{
"name": "DeploymentBranch",
"type": "Microsoft.Common.TextBox",
"label": "Deploy from a specific GitHub Branch",
"placeholder": "",
"defaultValue": "main",
"toolTip": "",
"constraints": {},
"visible": true
}
],
"visible": "[if(equals(steps('deploymentTypeStep').deploymentType, 'advanced'), true, false)]"
},
{
"name": "laTextBlock1",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Log Analytics Workspace"
}
},
{
"name": "logAnalyticsSelector",
"type": "Microsoft.Solutions.ResourceSelector",
"label": "Select Log Analytics Workspace",
"resourceType": "microsoft.operationalinsights/workspaces",
"options": {
"filter": {
}
}
}
]
},
{
"name": "seenStorage",
"label": "Storage Setup",
"elements": [
{
"name": "storageTextBlock1",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "SEEN uses a storage account to store email templates and track previous runs of SEEN modules."
}
},
{
"name": "storageTextBlock2",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "We recommend using a dedicated storage account for SEEN. If you choose to use an existing storage account, it must be in the same resource group as your SEEN deployment."
}
},
{
"name": "storageAccount",
"type": "Microsoft.Common.Section",
"label": "Storage Account Name",
"elements": [
{
"name": "singleStorage",
"type": "Microsoft.Storage.StorageAccountSelector",
"label": "Storage account",
"toolTip": "",
"defaultValue": {
"name": "",
"type": "Standard_LRS"
},
"constraints": {
"allowedTypes": []
},
"options": {
"hideExisting": false
},
"visible": true
}
],
"visible": true
}
]
}
],
"outputs": {
"StorageAccountName": "[steps('seenStorage').storageAccount.singleStorage.name]",
"StorageAccountType": "[steps('seenStorage').storageAccount.singleStorage.type]",
"StorageAccountKind": "[steps('seenStorage').storageAccount.singleStorage.kind]",
"LogAnalyticsResourceId": "[steps('seenModules').logAnalyticsSelector.id]",
"ConfigPlaybookName": "[coalesce(steps('seenModules').advancedSetup.ConfigPlaybookName,'SEEN-Config')]",
"EmailPlaybookName": "[coalesce(steps('seenModules').advancedSetup.EmailPlaybookName,'SEEN-SendEmail')]",
"MFAPlaybookName": "[coalesce(steps('seenModules').advancedSetup.MFAPlaybookName,'SEEN-MFAMethods')]",
"TravelPlaybookName": "[coalesce(steps('seenModules').advancedSetup.TravelPlaybookName,'SEEN-Travel')]",
"TAPPlaybookName": "[coalesce(steps('seenModules').advancedSetup.TAPPlaybookName,'SEEN-TemporaryAccessPass')]",
"WorkbookName": "[coalesce(steps('seenModules').advancedSetup.WorkbookName,'SEEN-Manage and monitor')]",
"EnableDiagnostics": "[coalesce(steps('seenModules').advancedSetup.enableDiagnostics, true)]",
"DeployFromBranch": "[coalesce(steps('seenModules').advancedSetup.DeploymentBranch,'main')]",
"location": "[location()]"
}
}
}