-
Notifications
You must be signed in to change notification settings - Fork 50
Closed
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 writing documentation around the secret()
function, I encountered an issue on parameterizing secret retrieval. I have the following secret extension available:

When I declare the following configuration document:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
parameters:
myString:
type: secureString
defaultValue: "[secret('MySecret')]"
resources:
- name: Database Connection
type: Microsoft.DSC.Debug/Echo
properties:
output: "[parameters('myString')]"
It throws me an error:
2025-08-25T09:27:59.097593Z DEBUG dsc::subcommand: 334: No parameters specified
2025-08-25T09:27:59.097749Z DEBUG dsc_lib::configure: 719: Processing parameter 'osFamily'
2025-08-25T09:27:59.097901Z DEBUG dsc_lib::configure: 721: Set default parameter 'osFamily'
2025-08-25T09:27:59.098080Z DEBUG dsc_lib::parser: 48: Parsing statement: [secret('MySecret')]
2025-08-25T09:27:59.098224Z DEBUG dsc_lib::parser: 89: Parsing expression
2025-08-25T09:27:59.098331Z DEBUG dsc_lib::parser::expressions: 43: Parsing function '{Node function (0, 1) - (0, 19)}'
2025-08-25T09:27:59.098459Z DEBUG dsc_lib::parser::functions: 57: Function name: 'secret'
2025-08-25T09:27:59.098591Z DEBUG dsc_lib::parser::functions: 80: Argument is a value: 'String("MySecret")'
2025-08-25T09:27:59.098722Z ERROR dsc::subcommand: 377: Parameter input failure: Function 'secret': No extensions supporting secrets was found
Steps to reproduce
Steps described in the description.
Expected behavior
The `secret()` function can be used in parameters.
Actual behavior
No extensions supporting secret was found.
Error details
No extensions supporting secret was found.
Environment data
Name Value
---- -----
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
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.4
Visuals
No response