-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathazuredeploy.json
101 lines (101 loc) · 3.57 KB
/
azuredeploy.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
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceGroupName": {
"type": "string",
"metadata": {
"description": "description"
},
"defaultValue": "rg-autotagger"
}
},
"functions": [],
"variables": {},
"resources": [
{
"name": "[parameters('resourceGroupName')]",
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2019-10-01",
"location": "[deployment().location]",
"dependsOn": [
],
"tags": {
"Application": "AzureAutoTagger",
"ApplicationUrl": "https://github.com/acampb/AzureAutoTagger"
}
},
{
"name": "eventgridfunctionapp",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"resourceGroup": "[parameters('resourceGroupName')]",
"dependsOn": [
"[resourceId('Microsoft.Resources/resourceGroups', parameters('resourceGroupName'))]"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/acampb/AzureAutoTagger/main/eventgridfunction.json",
"contentVersion": "1.0.0.0"
},
"parameters": {
}
}
},
{
"name": "rbac-reader",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"location": "[deployment().location]",
"dependsOn": [
"eventgridfunctionapp"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/acampb/AzureAutoTagger/main/rbac.json",
"contentVersion": "1.0.0.0"
},
"parameters": {
"roleDefinitionId": {
"value": "acdd72a7-3385-48ef-bd42-f606fba81ae7"
},
"principalId": {
"value": "[reference('eventgridfunctionapp').outputs.managedIdentityPrincipalId.value]"
}
}
}
},
{
"name": "rbac-tagcontributor",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"location": "[deployment().location]",
"dependsOn":[
"eventgridfunctionapp"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "https://raw.githubusercontent.com/acampb/AzureAutoTagger/main/rbac.json",
"contentVersion": "1.0.0.0"
},
"parameters": {
"roleDefinitionId": {
"value": "4a9ae827-6dc8-4573-8ac7-8239d42aa03f"
},
"principalId": {
"value": "[reference('eventgridfunctionapp').outputs.managedIdentityPrincipalId.value]"
}
}
}
}
],
"outputs": {
// "functionAppIdentityId": {
// "type": "string",
// "value": "[reference('eventgridfunctionapp').outputs.functionAppIdentityId.value]"
// }
}
}