-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
While working on the fix for #1115, another issue arose. Nested parameters (or a parameter depending on another) return an input failure. Take the following configuration document:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
parameters:
basePrefix:
type: string
defaultValue: base
computedPrefix:
type: string
defaultValue: "[concat(parameters('basePrefix'), '-computed')]"
resources:
- name: "test"
type: Microsoft.DSC.Debug/Echo
properties:
output: "[concat('Generated by ', parameters('computedPrefix'))]"
'@
Running the above example errors out: ERROR Parameter input failure: Parser: Parameter 'basePrefix' not found in context
Steps to reproduce
Run the above configuration document.
Expected behavior
Nested parameters are allowed.
Actual behavior
ERROR Parameter input failure: Parser: Parameter 'basePrefix' not found in context
Error details
Environment data
Name Value
---- -----
PSVersion 7.5.3
PSEdition Core
GitCommitId 7.5.3
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
dsc 3.2.0-preview.5
Visuals
No response