-
Notifications
You must be signed in to change notification settings - Fork 731
/
users.symbolicnames.json
65 lines (65 loc) · 1.74 KB
/
users.symbolicnames.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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"languageVersion": "2.0",
"contentVersion": "1.0.0.0",
"metadata": {
"_generator": {
"name": "bicep",
"version": "dev",
"templateHash": "8034218730798252475"
}
},
"parameters": {
"apimInstanceName": {
"type": "string",
"minLength": 1
}
},
"variables": {
"usersSet": [
{
"userId": "pvd",
"firstName": "Paul",
"lastName": "Van Dyk",
"email": "[email protected]",
"state": "active",
"notes": "Good DJ"
},
{
"userId": "abuuren",
"firstName": "Armin",
"lastName": "van Buuren",
"email": "[email protected]",
"state": "active",
"notes": "OK meh!"
}
]
},
"resources": {
"parentAPIM": {
"existing": true,
"type": "Microsoft.ApiManagement/service",
"apiVersion": "2019-01-01",
"name": "[parameters('apimInstanceName')]"
},
"apimUser": {
"copy": {
"name": "apimUser",
"count": "[length(variables('usersSet'))]"
},
"type": "Microsoft.ApiManagement/service/users",
"apiVersion": "2020-06-01-preview",
"name": "[format('{0}/{1}', parameters('apimInstanceName'), variables('usersSet')[copyIndex()].userId)]",
"properties": {
"firstName": "[variables('usersSet')[copyIndex()].firstName]",
"lastName": "[variables('usersSet')[copyIndex()].lastName]",
"email": "[variables('usersSet')[copyIndex()].email]",
"state": "[variables('usersSet')[copyIndex()].state]",
"note": "[variables('usersSet')[copyIndex()].notes]"
},
"dependsOn": [
"parentAPIM"
]
}
}
}