-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharm
More file actions
60 lines (60 loc) · 2.01 KB
/
Copy patharm
File metadata and controls
60 lines (60 loc) · 2.01 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
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"opusAppObjectID": {
"type": "String"
}
},
"variables": {
"roleName": "opus-role-read",
"roleDefName": "[guid(subscription().id, variables('roleName'))]",
"roleAssignmentId": "[guid(subscription().id, parameters('opusAppObjectID'), 'roleAssignment')]",
"Actions": [
"*/read"
]
},
"functions": [],
"resources": [
{
"type": "Microsoft.Authorization/roleDefinitions",
"apiVersion": "2018-01-01-preview",
"name": "[variables('roleDefName')]",
"properties": {
"roleName": "[variables('roleName')]",
"description": "Permissions to allow Orca SideScanner to protect your system",
"type": "customRole",
"isCustom": true,
"permissions": [
{
"actions": "[variables('actions')]",
"notActions": []
}
],
"assignableScopes": [
"[subscription().id]"
]
}
},
{
"type": "Microsoft.Authorization/roleAssignments",
"apiVersion": "2020-04-01-preview",
"name": "[variables('roleAssignmentId')]",
"dependsOn": [
"[variables('roleDefName')]"
],
"properties": {
"roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', variables('roleDefName'))]",
"principalId": "[parameters('opusAppObjectID')]",
"scope": "[subscription().id]",
"principalType": "ServicePrincipal"
}
}
],
"outputs": {
"SubscriptioID": {
"type": "String",
"value": "[subscription().id]"
}
}
}