-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.json
More file actions
155 lines (155 loc) · 7.02 KB
/
ui.json
File metadata and controls
155 lines (155 loc) · 7.02 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
{
"$schema": "<relative path to createFormUI.schema.json>",
"view": {
"kind": "Form",
"properties": {
"title": "Automated Onboarding of Azure Container Registries to Falcon Cloud Security",
"isWizard": true,
"steps": [
{
"name": "basics",
"label": "Basics",
"elements": [
{
"name": "resourceScope",
"type": "Microsoft.Common.ResourceScope",
"location": {
"resourceTypes": [
"microsoft.resources/resourcegroups"
]
}
}
]
},
{
"name": "sp",
"label": "Service Principal",
"elements": [
{
"name": "newSpinfo",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "NOTE: If selected a new service principal may be created for you. Please take note of the password when following the wizard.",
"link": {
"label": "Learn more",
"uri": "https://learn.microsoft.com/en-us/cli/azure/azure-cli-sp-tutorial-2"
}
}
},
{
"name": "existingSpinfo",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "NOTE: When using an existing service principal, please ensure the ArcPull role has been applied and please have the password available or create a new password.",
"link": {
"label": "Learn more",
"uri": "https://learn.microsoft.com/en-us/cli/azure/azure-cli-sp-tutorial-7?tabs=bash#reset-credentials-returning-output-to-the-console-and-log-file"
}
}
},
{
"name": "ServicePrincipal",
"type": "Microsoft.Common.ServicePrincipalSelector",
"label": {
"password": "Password",
"authenticationType": "Authentication Type",
"sectionHeader": "Service Principal"
},
"toolTip": {
"password": "Password",
"authenticationType": "Authentication Type"
},
"defaultValue": {
"principalId": "<default guid>",
"name": "<default name>"
},
"constraints": {
"required": false
},
"options": {
"hideCertificate": true
},
"visible": true
}
]
},
{
"name": "falcon",
"label": "Falcon Cloud Security Information",
"elements": [
{
"name": "information",
"type": "Microsoft.Common.InfoBox",
"visible": true,
"options": {
"icon": "None",
"text": "Please enter your Falcon Client ID and Client Secret. If you do not have a Falcon Client ID, please contact your Falcon administrator. For more information, see <a href='https://falcon.crowdstrike.com' target='_blank'>here</a>.",
"uri": "https://falcon.crowdstrike.com"
}
},
{
"name": "cid",
"type": "Microsoft.Common.TextBox",
"label": "Falcon Client ID",
"defaultValue": "",
"toolTip": "Use only allowed characters",
"placeholder": "",
"multiLine": false,
"constraints": {
"required": true,
"validations": [
{}
]
},
"visible": true
},
{
"name": "secret",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Falcon Client Secret"
},
"toolTip": "",
"validations": [
{}
],
"options": {
"hideConfirmation": true
},
"visible": true
}
]
},
{
"name": "tags",
"label": "Tags",
"elements": [
{
"name": "tagsByResource",
"type": "Microsoft.Common.TagsByResource",
"resources": [
"Microsoft.Storage/storageAccounts",
"Microsoft.Compute/virtualMachines"
]
}
]
}
]
},
"outputs": {
"kind": "Subscription",
"subscriptionId": "[steps('basics').resourceScope.subscription.id]",
"location": "[steps('basics').resourceScope.location.name]",
"parameters": {
"tagsByResource": "[steps('tags').tagsByResource]",
"spName": "[steps('sp').ServicePrincipal.appId]",
"spObjectId": "[first(steps('sp').ServicePrincipal.objectId)]",
"spPassword": "[steps('sp').ServicePrincipal.password]",
"falconClientId": "[steps('falcon').cid]",
"falconClientSecret": "[steps('falcon').secret]"
}
}
}
}