-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazuredeployUI.json
More file actions
197 lines (196 loc) · 8.85 KB
/
azuredeployUI.json
File metadata and controls
197 lines (196 loc) · 8.85 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"resourceTypes": [
"microsoft.logic/workflows",
"microsoft.web/connections",
"microsoft.resources/resourcegroups"
],
"config": {
"isWizard": false,
"basics": {
"description": "This custom template will deploy the **AADPasswordExpiryNotifier** solution, consisting of two Logic Apps. For more information, refer to [this link](https://github.com/grimstoner/AADPasswordExpiryNotifier).",
"subscription": {
"constraints": {
"validations": [
{
"isValid": "[not(contains(subscription().displayName, 'Test'))]",
"message": "Can't use test subscription."
},
{
"permission": "Microsoft.Compute/virtualmachines/write",
"message": "Must have write permission for the virtual machine."
},
{
"permission": "Microsoft.Compute/virtualMachines/extensions/write",
"message": "Must have write permission for the extension."
}
]
},
"resourceProviders": [
"Microsoft.Compute"
]
},
"resourceGroup": {
"constraints": {
"validations": [
{
"isValid": "[not(contains(resourceGroup().name, 'test'))]",
"message": "Resource group name can't contain 'test'."
}
]
},
"allowExisting": true
}
}
},
"basics": [
{
"name": "logicAppName",
"type": "Microsoft.Common.TextBox",
"label": "Logic App Name",
"defaultValue": "AADPasswordExpiryNotifier",
"toolTip": "This will be the name of the LogicApp that will handle processing. Another LogicApp will be deployed with the same name, postfixed with '_Trigger'",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
}],
"steps": [
{
"name": "config",
"label": "Configuration",
"elements": [
{
"name": "MicrosoftGraphClientId",
"type": "Microsoft.Common.TextBox",
"label": "Microsoft Graph Client Id",
"defaultValue": "",
"toolTip": "Enter the client Id for the application with read access to Microsoft Graph API.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
},
{
"name": "MicrosoftGraphSecret",
"type": "Microsoft.Common.TextBox",
"label": "Microsoft Graph Secret",
"defaultValue": "",
"toolTip": "Enter the secret for the application with read access to Microsoft Graph API.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
},
{
"name": "MicrosoftGraphTenant",
"type": "Microsoft.Common.TextBox",
"label": "Microsoft Graph Tenant",
"defaultValue": "",
"toolTip": "Enter the tenant Id to query users from.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
},
{
"name": "SendgridAccountName",
"type": "Microsoft.Common.TextBox",
"label": "Sendgrid Account Name",
"defaultValue": "sendgrid",
"toolTip": "Enter the name of the SendGrid account to use to send emails.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
},
{
"name": "SendgridApiKey",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Sendgrid Api Key",
"confirmPassword": "Confirm password"
},
"toolTip": "Enter the SendGrid API key for the above account.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"options": {
"hideConfirmation": true
},
"visible": true
}
]
},
{
"name": "trigger",
"label": "Trigger",
"elements": [
{
"name": "RecurrenceFrequency",
"type": "Microsoft.Common.TextBox",
"label": "Recurrence Frequency",
"defaultValue": "Day",
"toolTip": "Refrain from editing these values here. You can edit the schedule using the GUI after creation.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
},
{
"name": "RecurrenceInterval",
"type": "Microsoft.Common.TextBox",
"label": "Recurrence Interval",
"defaultValue": "1",
"toolTip": "Refrain from editing these values here. You can edit the schedule using the GUI after creation.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
},
{
"name": "RecurrenceSchedule",
"type": "Microsoft.Common.TextBox",
"label": "Recurrence Schedule",
"defaultValue": "{\"hours\":[\"8\"],\"minutes\":[0]}",
"toolTip": "Refrain from editing these values here. You can edit the schedule using the GUI after creation.",
"constraints": {
"required": true,
"regex": "",
"validationMessage": ""
},
"visible": true
}]
}],
"outputs": {
"logicAppName": "[basics('logicAppName')]",
"MicrosoftGraphClientId": "[steps('config').MicrosoftGraphClientId]",
"MicrosoftGraphSecret": "[steps('config').MicrosoftGraphSecret]",
"MicrosoftGraphTenant": "[steps('config').MicrosoftGraphTenant]",
"SendgridAccountName": "[steps('config').SendgridAccountName]",
"SendgridApiKey": "[steps('config').SendgridApiKey]",
"RecurrenceFrequency": "[steps('trigger').RecurrenceFrequency]",
"RecurrenceInterval": "[steps('trigger').RecurrenceInterval]",
"RecurrenceSchedule": "[steps('trigger').RecurrenceSchedule]"
}
}
}