forked from Azure/bicep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathres-policy-guestconfig-params.bicep
28 lines (27 loc) · 1.18 KB
/
res-policy-guestconfig-params.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
// Guest configuration assignment with parameters, for virtual machine
resource virtualMachine 'Microsoft.Compute/virtualMachines@2020-12-01' = {
name: /*${1:'name'}*/'name'
location: /*${2:location}*/'location'
}
resource /*${3:guestConfigAssignment}*/guestConfigAssignment 'Microsoft.GuestConfiguration/guestConfigurationAssignments@2022-01-25' = {
name: /*${4:'name'}*/'name'
scope: virtualMachine
location: /*${2:location}*/'location'
properties: {
guestConfiguration: {
name: /*${5:'configurationName'}*/'configurationName'
assignmentType: /*${6|'ApplyAndMonitor','ApplyAndAutoCorrect','Audit'|}*/'ApplyAndMonitor'
version: /*${7:'1.*'}*/'1.*'
configurationParameter: [
{
name: /*${8:'parameter1[dscResourceType]dscResourceName;propertyName'}*/'parameter1[dscResourceType]dscResourceName;propertyName'
value: /*${9:'parameter1Value'}*/'parameter1Value'
}
{
name: /*${10:'parameter2[dscResourceType]dscResourceName;propertyName'}*/'parameter2[dscResourceType]dscResourceName;propertyName'
value: /*${11:'parameter2Value'}*/'parameter2Value'
}
]
}
}
}