-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestConfiguration.yaml
43 lines (36 loc) · 1.23 KB
/
TestConfiguration.yaml
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
parameters:
timeZone:
type: string
defaultValue: Pacific Standard Time
variables:
# Simple variables
userName: TestUser
groupName: TestGroup
foo: # Variable with a value that is a hashtable
bar: baz
resources:
- name: test-user # The results of the Get method are stored in a variable named 'test-user'. Get is called after Set. When name contains a special character, use ${test user}
type: PSDscResources/User
properties:
UserName: $(variables('userName')) # This is an example of how to use a simple variable
- name: test-group
type: PSDscResources/Group
properties:
GroupName: $(variables('groupName'))
MembersToInclude:
- $($(reference('test-user')).UserName)
- condition: $(not(equals($(variables('foo')).bar, 'baz'))) # Conditions must return $true or else this task will be skipped
name: spooler-service
type: PSDscResources/Service
properties:
Name: Spooler
- name: timezone
type: xTimeZone/xTimeZone
properties:
TimeZone: $(parameters('timeZone'))
IsSingleInstance: yes
- name: securityoption
type: SecurityPolicyDsc/SecurityOption
properties:
Name: SecurityOption
Accounts_Guest_account_status: Disabled