Skip to content

Commit b611f92

Browse files
Merge pull request #404 from MicrosoftDocs/main
Auto Publish – main to live - 2026-04-20 23:00 UTC
2 parents 0b77d74 + 3ee2e3a commit b611f92

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • dsc/docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters

dsc/docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters/dataTypes.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ The valid data types for a parameter are:
3737
Access parameters in a configuration using this syntax:
3838

3939
```yaml
40-
"[parameter('<parameter-name>')]"
40+
"[parameters('<parameter-name>')]"
4141
```
4242

4343
In YAML, the parameter syntax needs to be enclosed in double-quotes when used as an inline value.
4444
If the syntax isn't quoted, YAML interprets the syntax as an array.
4545

4646
```yaml
47-
valid: "[parameter('example')]"
47+
valid: "[parameters('example')]"
4848
# This unquoted syntax:
49-
invalid: [parameter('example')]
49+
invalid: [parameters('example')]
5050
# Evaluates to this YAML:
5151
invalid:
52-
- parameter('example')
52+
- parameters('example')
5353
```
5454

5555
## Arrays
@@ -77,7 +77,7 @@ Access items in an array can by their index. The first item in an array is index
7777
syntax to access an index in an array parameter:
7878

7979
```yaml
80-
"[parameter('<parameter-name>')[<index>]]"
80+
"[parameters('<parameter-name>')[<index>]]"
8181
```
8282

8383
```yaml
@@ -94,14 +94,14 @@ resources:
9494
type: Example.Security/Group
9595
properties:
9696
groupName: operators
97-
members: "[parameter('members')]"
97+
members: "[parameters('members')]"
9898
# Use a single item in the array as the value for a resource property
9999
- name: Admin Group
100100
type: Example.Security/Group
101101
properties:
102102
groupName: admins
103103
members:
104-
- "[parameter('members')[0]]"
104+
- "[parameters('members')[0]]"
105105
```
106106

107107
## Booleans
@@ -170,11 +170,11 @@ resources:
170170
# Use the base object for the property definition
171171
- name: TSToy
172172
type: TSToy.Example/gotstoy
173-
properties: "[parameter('tstoy')]"
173+
properties: "[parameters('tstoy')]"
174174
# Use dot-notation for the property definition
175175
- name: Windows Product Name
176176
type: Microsoft.Windows/Registry
177-
properties: "[parameter('registryKeys').productName]"
177+
properties: "[parameters('registryKeys').productName]"
178178
# Use dot-notation for each value in the property definition
179179
- name: Windows System Root
180180
type: Microsoft.Windows/Registry

0 commit comments

Comments
 (0)