forked from radius-project/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-policy-assignment.bicep
32 lines (32 loc) · 1.04 KB
/
res-policy-assignment.bicep
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
// Policy Assignment
resource /*${1:policyAssignment}*/policyAssignment 'Microsoft.Authorization/policyAssignments@2020-09-01' = {
name: /*${2:'name'}*/'name'
location: /*${3:location}*/'location'
identity: {
type: /*${4|'SystemAssigned','None'|}*/'SystemAssigned'
}
properties: {
displayName: /*${5:'displayName'}*/'displayName'
description: /*${6:'description'}*/'description'
enforcementMode: /*${7|'Default','DoNotEnforce'|}*/'Default'
metadata: {
source: /*${8:'source'}*/'source'
version: /*${9:'0.1.0'}*/'0.1.0'
}
policyDefinitionId: /*${10:'policyDefinitionId'}*/'policyDefinitionId'
parameters: {
/*${11:parameterName}*/'parameterName': {
value: /*${12:'value'}*/'value'
}
}
nonComplianceMessages: [
{
message: /*${13:'message'}*/'message'
}
{
message: /*${14:'message'}*/'message'
policyDefinitionReferenceId: /*${15:'policyDefinitionReferenceId'}*/'policyDefinitionReferenceId'
}
]
}
}