-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrbac.json
42 lines (41 loc) · 1.31 KB
/
rbac.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
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"roleDefinitionId": {
"type": "string",
"metadata": {
"description": "description"
}
},
"principalId": {
"type": "string",
"metadata": {
"description": "description"
}
},
"roleAssignmentGuid": {
"type": "string",
"defaultValue": "[newGuid()]",
"metadata": {
"description": "A new GUID used to identify the role assignment"
}
}
},
"functions": [],
"variables": {
"roleDefinitionFull": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', parameters('roleDefinitionId'))]"
},
"resources": [
{
"name": "[parameters('roleAssignmentGuid')]",
"type": "Microsoft.Authorization/roleAssignments",
"apiVersion": "2017-09-01",
"properties": {
"roleDefinitionId": "[variables('roleDefinitionFull')]",
"principalId": "[parameters('principalId')]"
}
}
],
"outputs": {}
}