From 6f05c04068a5ec60b235dcb9980dddfa0f0a65ef Mon Sep 17 00:00:00 2001 From: Mukunda Rao Katta Date: Mon, 20 Apr 2026 06:48:43 -0700 Subject: [PATCH 1/2] docs(dsc-3.0): fix singular parameter() -> parameters() throughout dataTypes.md (#403) The DSC template function is called 'parameters()' (matching the Azure ARM-template convention), but the 'Data types' reference page at docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters/dataTypes.md wrote it as 'parameter()' in nine places, including the very first syntax example block the article introduces. As noted in #401, the first four code blocks were affected; while here, also fix the singular calls further down in the Objects example (lines 173 and 177) so the whole page uses the correct spelling. No prose or example semantics changed beyond the typo. Closes #401. --- .../definitions/parameters/dataTypes.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dsc/docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters/dataTypes.md b/dsc/docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters/dataTypes.md index 4d5751f..388f071 100644 --- a/dsc/docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters/dataTypes.md +++ b/dsc/docs-conceptual/dsc-3.0/reference/schemas/definitions/parameters/dataTypes.md @@ -37,19 +37,19 @@ The valid data types for a parameter are: Access parameters in a configuration using this syntax: ```yaml -"[parameter('')]" +"[parameters('')]" ``` In YAML, the parameter syntax needs to be enclosed in double-quotes when used as an inline value. If the syntax isn't quoted, YAML interprets the syntax as an array. ```yaml -valid: "[parameter('example')]" +valid: "[parameters('example')]" # This unquoted syntax: -invalid: [parameter('example')] +invalid: [parameters('example')] # Evaluates to this YAML: invalid: - - parameter('example') + - parameters('example') ``` ## Arrays @@ -77,7 +77,7 @@ Access items in an array can by their index. The first item in an array is index syntax to access an index in an array parameter: ```yaml -"[parameter('')[]]" +"[parameters('')[]]" ``` ```yaml @@ -94,14 +94,14 @@ resources: type: Example.Security/Group properties: groupName: operators - members: "[parameter('members')]" + members: "[parameters('members')]" # Use a single item in the array as the value for a resource property - name: Admin Group type: Example.Security/Group properties: groupName: admins members: - - "[parameter('members')[0]]" + - "[parameters('members')[0]]" ``` ## Booleans @@ -170,11 +170,11 @@ resources: # Use the base object for the property definition - name: TSToy type: TSToy.Example/gotstoy - properties: "[parameter('tstoy')]" + properties: "[parameters('tstoy')]" # Use dot-notation for the property definition - name: Windows Product Name type: Microsoft.Windows/Registry - properties: "[parameter('registryKeys').productName]" + properties: "[parameters('registryKeys').productName]" # Use dot-notation for each value in the property definition - name: Windows System Root type: Microsoft.Windows/Registry From 3ee2e3acfbed7fa0f7161c52729d9c457765d8c8 Mon Sep 17 00:00:00 2001 From: Gijs Reijn <26114636+Gijsreyn@users.noreply.github.com> Date: Mon, 20 Apr 2026 16:01:38 +0200 Subject: [PATCH 2/2] Update parameter syntax from 'parameter' to 'parameters' (#402)