PowerShell / PowerShell/DSC

parameters are not pass to: Microsoft.DSC/Group

Open
#1,293 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Need-Review
Dominant language
Rust
Stars
523
Forks
75
Avg merge
3d 16h
Merged PRs (30d)
24

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.
Summary

Hi I found a bug, when I try to use parameters in nested resources like groups, dsc show error that cannot found parameter, I describe issue with logs below.

Steps to reproduce
  1. Document file for resources

$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
parameters:
  SafemodeAdministratorPassword:
    type: secureString
  showSecrets:
    type: bool
    defaultValue: true
metadata:
  Microsoft.DSC:
    requiredSecurityContext: current # this is the default and just used as an example indicating this config works for admins and non-admins
resources:
- name: Prequesites
  type: Microsoft.DSC/Group
  properties:
    $schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
    resources:
    - name: SecureString
      type: Microsoft.DSC.Debug/Echo
      properties:
       output: "[parameters('SafemodeAdministratorPassword')]"
- name: Second Group
  type: Microsoft.DSC/Group
  properties: 
    $schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
    resources:
    - name: SecureString
      type: Microsoft.DSC.Debug/Echo
      properties:
       output: "[parameters('SafemodeAdministratorPassword')]"
  dependsOn:
  - "[resourceId('Microsoft.DSC/Group','Prequesites')]"

  1. Parameters file

parameters:
  SafemodeAdministratorPassword: mySecretTest!!

Expected behavior
dsc config  --parameters-file .\dsc_resources.parameters.yaml  test --file .\parameters.groups.dsc.yaml
Actual behavior
2025-11-26T06:26:41.114556Z ERROR trace_message="PID 8264: Parser: Parameter 'SafemodeAdministratorPassword' not found in context"                                                                                                                         
2025-11-26T06:26:41.117017Z ERROR Failed to run process 'dsc': Command: Resource 'dsc' [exit code 2] manifest description: Resource error
2025-11-26T06:26:41.118604Z ERROR Command: Resource 'dsc' [exit code 2] manifest description: Resource error



Debug logs:


2025-11-26T06:29:08.990500Z  INFO dsc::util: 432: Trace-level is Debug
2025-11-26T06:29:08.991237Z DEBUG dsc: 46: Running DSC version: 3.2.0-preview.8
2025-11-26T06:29:08.991480Z  INFO dsc: 81: Reading parameters from file: .\ads-v2.parameters.yaml
2025-11-26T06:29:08.997882Z DEBUG dsc::util: 553: Setting DSC_CONFIG_ROOT env var as 'C:\DSC\config'
2025-11-26T06:29:08.998291Z DEBUG dsc::util: 447: Reading input from file C:\DSC\config\parameters.groups.dsc.yaml
2025-11-26T06:29:09.000043Z  INFO dsc_lib::discovery::command_discovery: 216: Discovering 'Extension' using filter: *
2025-11-26T06:29:09.000380Z DEBUG dsc_lib::discovery::command_discovery: 219: Using regex ^.*?$ as filter for adapter name
2025-11-26T06:29:09.004310Z DEBUG dsc_lib::util: 128: Found setting 'resourcePath' in C:\DSC\DSCv3\dsc_default.settings.json
2025-11-26T06:29:09.004726Z DEBUG dsc_lib::util: 138: Found setting 'resourcePath' in C:\DSC\DSCv3\dsc.settings.json
2025-11-26T06:29:09.005033Z DEBUG dsc_lib::util: 152: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-11-26T06:29:09.006265Z DEBUG dsc_lib::discovery::command_discovery: 147: Appending PATH to resourcePath
2025-11-26T06:29:09.006831Z DEBUG dsc_lib::discovery::command_discovery: 190: Using Resource Path: C:\Program Files\PowerShell\7;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\DSC\DSCv3;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links;
2025-11-26T06:29:09.200710Z DEBUG dsc_lib::extensions::import: 71: Import is not supported by extension 'Microsoft.DSC.Extension/Bicep' for file 'C:\DSC\config\parameters.groups.dsc.yaml'
2025-11-26T06:29:09.213245Z DEBUG dsc_lib::discovery::command_discovery: 492: Searching for resources: [DiscoveryFilter { type: "microsoft.dsc/group", version: None }]
2025-11-26T06:29:09.213505Z  INFO dsc_lib::discovery::command_discovery: 216: Discovering 'Resource' using filter: *
2025-11-26T06:29:09.213790Z DEBUG dsc_lib::discovery::command_discovery: 219: Using regex ^.*?$ as filter for adapter name
2025-11-26T06:29:09.219028Z DEBUG dsc_lib::util: 128: Found setting 'resourcePath' in C:\DSC\DSCv3\dsc_default.settings.json
2025-11-26T06:29:09.219999Z DEBUG dsc_lib::util: 138: Found setting 'resourcePath' in C:\DSC\DSCv3\dsc.settings.json
2025-11-26T06:29:09.220399Z DEBUG dsc_lib::util: 152: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-11-26T06:29:09.220665Z DEBUG dsc_lib::discovery::command_discovery: 147: Appending PATH to resourcePath
2025-11-26T06:29:09.221627Z DEBUG dsc_lib::discovery::command_discovery: 190: Using Resource Path: C:\Program Files\PowerShell\7;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\DSC\DSCv3;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Administrator\AppData\Local\Microsoft\WinGet\Links;
2025-11-26T06:29:09.580326Z DEBUG dsc_lib::discovery::command_discovery: 324: Calling extension 'Microsoft.Windows.Appx/Discover' to discover resources                                                                                                    
2025-11-26T06:29:11.248960Z DEBUG dsc_lib::dscresources::command_resource: 710: Process 'powershell' id 4084 exited with code 0                                                                                                                            
2025-11-26T06:29:11.267200Z DEBUG dsc_lib::discovery::command_discovery: 332: Extension 'Microsoft.Windows.Appx/Discover' found 4 resources                                                                                                                
2025-11-26T06:29:11.268308Z DEBUG dsc_lib::discovery::command_discovery: 510: Found 1 non-adapter resources
2025-11-26T06:29:11.268552Z DEBUG dsc::subcommand: 341: Parameters specified
2025-11-26T06:29:11.269051Z DEBUG dsc_lib::configure: 843: Validating parameter 'SafemodeAdministratorPassword'
2025-11-26T06:29:11.269543Z  INFO dsc_lib::configure: 852: Set secure parameter 'SafemodeAdministratorPassword'
2025-11-26T06:29:11.269691Z DEBUG dsc_lib::configure: 881: Processing parameter 'showSecrets'
2025-11-26T06:29:11.269866Z DEBUG dsc_lib::configure: 883: Set default parameter 'showSecrets'
2025-11-26T06:29:11.270102Z DEBUG dsc_lib::configure: 925: No variables defined in configuration
2025-11-26T06:29:11.271026Z DEBUG dsc_lib::configure::depends_on: 27: Getting resource invocation order
2025-11-26T06:29:11.271207Z DEBUG dsc_lib::parser: 48: Parsing statement: [resourceId('Microsoft.DSC/Group','Prequesites')]
2025-11-26T06:29:11.271575Z DEBUG dsc_lib::parser: 89: Parsing expression
2025-11-26T06:29:11.271824Z DEBUG dsc_lib::parser::expressions: 49: Parsing function: "resourceId('Microsoft.DSC/Group','Prequesites')"
2025-11-26T06:29:11.272040Z DEBUG dsc_lib::parser::functions: 57: Function name: 'resourceId'
2025-11-26T06:29:11.272445Z DEBUG dsc_lib::parser::functions: 80: Argument is a value: 'String("Microsoft.DSC/Group")'
2025-11-26T06:29:11.272709Z DEBUG dsc_lib::parser::functions: 80: Argument is a value: 'String("Prequesites")'
2025-11-26T06:29:11.273039Z DEBUG dsc_lib::configure::depends_on: 90: Resource invocation order: [Resource { condition: None, resource_type: "Microsoft.DSC/Group", api_version: None, name: "Prequesites", comments: None, location: None, depends_on: None, tags: None, identity: None, sku: None, kind: None, scope: None, copy: None, plan: None, properties: Some({"$schema": String("https://aka.ms/dsc/schemas/v3/bundled/config/document.json"), "resources": Array [Object {"name": String("SecureString"), "type": String("Microsoft.DSC.Debug/Echo"), "properties": Object {"output": String("[parameters('SafemodeAdministratorPassword')]")}}]}), resources: None, metadata: None, import: None, extension: None }, Resource { condition: None, resource_type: "Microsoft.DSC/Group", api_version: None, name: "Second Group", comments: None, location: None, depends_on: Some(["[resourceId('Microsoft.DSC/Group','Prequesites')]"]), tags: None, identity: None, sku: None, kind: None, scope: None, copy: None, plan: None, properties: Some({"$schema": String("https://aka.ms/dsc/schemas/v3/bundled/config/document.json"), "resources": Array [Object {"name": String("SecureString"), "type": String("Microsoft.DSC.Debug/Echo"), "properties": Object {"output": String("[parameters('SafemodeAdministratorPassword')]")}}]}), resources: None, metadata: None, import: None, extension: None }]
2025-11-26T06:29:11.273616Z DEBUG dsc_lib::parser: 48: Parsing statement: Prequesites
2025-11-26T06:29:11.274269Z DEBUG dsc_lib::parser: 77: Parsing string literal: Prequesites
2025-11-26T06:29:11.274758Z DEBUG dsc_lib::configure: 627: resource_type Microsoft.DSC/Group
2025-11-26T06:29:11.275468Z DEBUG dsc_lib::dscresources::dscresource: 418: Invoking test for 'Microsoft.DSC/Group'
2025-11-26T06:29:11.276129Z DEBUG dsc_lib::dscresources::command_resource: 275: Invoking test for 'Microsoft.DSC/Group'
2025-11-26T06:29:11.276504Z DEBUG dsc_lib::dscresources::command_resource: 859: Verify JSON for 'Microsoft.DSC/Group'
2025-11-26T06:29:11.276838Z DEBUG dsc_lib::dscresources::command_resource: 846: No input kind specified
2025-11-26T06:29:11.277174Z  INFO dsc_lib::dscresources::command_resource: 467: Invoking validate on 'Microsoft.DSC/Group' using 'dsc'
2025-11-26T06:29:11.315507Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 6416: Trace-level is Debug"                                                                                                                             
2025-11-26T06:29:11.316159Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc: 46: Running DSC version: 3.2.0-preview.8"
2025-11-26T06:29:11.316655Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc::subcommand: 262: DSC_CONFIG_ROOT = C:\\DSC\\config"
2025-11-26T06:29:11.317470Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc::util: 438: Reading input from command line parameter"
2025-11-26T06:29:11.318036Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 492: Searching for resources: [DiscoveryFilter { type: \"microsoft.dsc.debug/echo\", version: None }]"     
2025-11-26T06:29:11.318462Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 6416: Discovering 'Extension' using filter: *"
2025-11-26T06:29:11.319120Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 219: Using regex ^.*?$ as filter for adapter name"
2025-11-26T06:29:11.319592Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::util: 128: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc_default.settings.json"
2025-11-26T06:29:11.320090Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::util: 138: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc.settings.json"
2025-11-26T06:29:11.320498Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::util: 152: Setting 'resourcePath' not found in C:\\ProgramData\\dsc\\dsc.settings.json"
2025-11-26T06:29:11.321025Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 147: Appending PATH to resourcePath"
2025-11-26T06:29:11.321656Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 190: Using Resource Path: C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\DSC\\DSCv3;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WinGet\\Links;"
2025-11-26T06:29:11.518923Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 6416: Discovering 'Resource' using filter: *"                                                                                                           
2025-11-26T06:29:11.520234Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 219: Using regex ^.*?$ as filter for adapter name"
2025-11-26T06:29:11.520580Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::util: 128: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc_default.settings.json"
2025-11-26T06:29:11.523358Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::util: 138: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc.settings.json"
2025-11-26T06:29:11.526925Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::util: 152: Setting 'resourcePath' not found in C:\\ProgramData\\dsc\\dsc.settings.json"
2025-11-26T06:29:11.527409Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 147: Appending PATH to resourcePath"
2025-11-26T06:29:11.527791Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 190: Using Resource Path: C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\DSC\\DSCv3;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WinGet\\Links;"
2025-11-26T06:29:11.733245Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 324: Calling extension 'Microsoft.Windows.Appx/Discover' to discover resources"                            
2025-11-26T06:29:12.300429Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::dscresources::command_resource: 710: Process 'powershell' id 1264 exited with code 0"
2025-11-26T06:29:12.316904Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 332: Extension 'Microsoft.Windows.Appx/Discover' found 4 resources"
2025-11-26T06:29:12.317807Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 510: Found 1 non-adapter resources"
2025-11-26T06:29:12.318403Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc::subcommand: 337: No parameters specified"
2025-11-26T06:29:12.318874Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 6416: No parameters defined in configuration and no parameters input"
2025-11-26T06:29:12.319484Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::configure: 925: No variables defined in configuration"
2025-11-26T06:29:12.319974Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc::subcommand: 482: Validating configuration against schema"
2025-11-26T06:29:12.320511Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::dscresources::dscresource: 749: Validating against schema: Configuration"
2025-11-26T06:29:12.385433Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 492: Searching for resources: [DiscoveryFilter { type: \"microsoft.dsc.debug/echo\", version: None }]"     
2025-11-26T06:29:12.386066Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::discovery::command_discovery: 510: Found 1 non-adapter resources"
2025-11-26T06:29:12.386722Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::dscresources::dscresource: 507: Invoking schema for 'Microsoft.DSC.Debug/Echo'"
2025-11-26T06:29:12.416070Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::dscresources::command_resource: 710: Process 'dscecho' id 7236 exited with code 0"                                                       
2025-11-26T06:29:12.422243Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 6416: dsc_lib::dscresources::dscresource: 749: Validating against schema: Microsoft.DSC.Debug/Echo"
2025-11-26T06:29:12.435974Z DEBUG dsc_lib::dscresources::command_resource: 710: Process 'dsc' id 6416 exited with code 0                                                                                                                                   
2025-11-26T06:29:12.437004Z DEBUG dsc_lib::dscresources::command_resource: 846: No input kind specified
2025-11-26T06:29:12.437400Z  INFO dsc_lib::dscresources::command_resource: 290: Invoking test on 'Microsoft.DSC/Group' using 'dsc'
2025-11-26T06:29:12.490912Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 7448: Trace-level is Debug"                                                                                                                             
2025-11-26T06:29:12.497138Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc: 46: Running DSC version: 3.2.0-preview.8"
2025-11-26T06:29:12.498341Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc::subcommand: 262: DSC_CONFIG_ROOT = C:\\DSC\\config"
2025-11-26T06:29:12.498868Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc::util: 438: Reading input from command line parameter"
2025-11-26T06:29:12.499367Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 492: Searching for resources: [DiscoveryFilter { type: \"microsoft.dsc.debug/echo\", version: None }]"     
2025-11-26T06:29:12.499868Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 7448: Discovering 'Extension' using filter: *"
2025-11-26T06:29:12.500427Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 219: Using regex ^.*?$ as filter for adapter name"
2025-11-26T06:29:12.501348Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::util: 128: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc_default.settings.json"
2025-11-26T06:29:12.501793Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::util: 138: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc.settings.json"
2025-11-26T06:29:12.502255Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::util: 152: Setting 'resourcePath' not found in C:\\ProgramData\\dsc\\dsc.settings.json"
2025-11-26T06:29:12.502788Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 147: Appending PATH to resourcePath"
2025-11-26T06:29:12.503439Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 190: Using Resource Path: C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\DSC\\DSCv3;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WinGet\\Links;"
2025-11-26T06:29:12.671902Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 7448: Discovering 'Resource' using filter: *"                                                                                                           
2025-11-26T06:29:12.680571Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 219: Using regex ^.*?$ as filter for adapter name"
2025-11-26T06:29:12.683208Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::util: 128: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc_default.settings.json"
2025-11-26T06:29:12.687280Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::util: 138: Found setting 'resourcePath' in C:\\DSC\\DSCv3\\dsc.settings.json"
2025-11-26T06:29:12.687919Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::util: 152: Setting 'resourcePath' not found in C:\\ProgramData\\dsc\\dsc.settings.json"
2025-11-26T06:29:12.688377Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 147: Appending PATH to resourcePath"
2025-11-26T06:29:12.688934Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 190: Using Resource Path: C:\\Program Files\\PowerShell\\7;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\DSC\\DSCv3;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Administrator\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WinGet\\Links;"
2025-11-26T06:29:12.888542Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 324: Calling extension 'Microsoft.Windows.Appx/Discover' to discover resources"                            
2025-11-26T06:29:13.443257Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::dscresources::command_resource: 710: Process 'powershell' id 3664 exited with code 0"                                                    
2025-11-26T06:29:13.458958Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 332: Extension 'Microsoft.Windows.Appx/Discover' found 4 resources"
2025-11-26T06:29:13.460493Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::discovery::command_discovery: 510: Found 1 non-adapter resources"
2025-11-26T06:29:13.460869Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc::subcommand: 337: No parameters specified"
2025-11-26T06:29:13.462738Z  INFO dsc_lib::dscresources::command_resource: 968: trace_message="PID 7448: No parameters defined in configuration and no parameters input"
2025-11-26T06:29:13.463126Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::configure: 925: No variables defined in configuration"
2025-11-26T06:29:13.463412Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::configure::depends_on: 27: Getting resource invocation order"
2025-11-26T06:29:13.463796Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::configure::depends_on: 90: Resource invocation order: [Resource { condition: None, resource_type: \"Microsoft.DSC.Debug/Echo\", api_version: None, name: \"SecureString\", comments: None, location: None, depends_on: None, tags: None, identity: None, sku: None, kind: None, scope: None, copy: None, plan: None, properties: Some({\"output\": String(\"[parameters('SafemodeAdministratorPassword')]\")}), resources: None, metadata: None, import: None, extension: None }]"
2025-11-26T06:29:13.464193Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser: 48: Parsing statement: SecureString"
2025-11-26T06:29:13.464572Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser: 77: Parsing string literal: SecureString"
2025-11-26T06:29:13.465177Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::configure: 1092: Invoke property expressions"
2025-11-26T06:29:13.465532Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser: 48: Parsing statement: [parameters('SafemodeAdministratorPassword')]"
2025-11-26T06:29:13.466598Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser: 89: Parsing expression"
2025-11-26T06:29:13.466841Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser::expressions: 49: Parsing function: \"parameters('SafemodeAdministratorPassword')\""
2025-11-26T06:29:13.467101Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser::functions: 57: Function name: 'parameters'"
2025-11-26T06:29:13.467332Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::parser::functions: 80: Argument is a value: 'String(\"SafemodeAdministratorPassword\")'"
2025-11-26T06:29:13.467793Z DEBUG dsc_lib::dscresources::command_resource: 971: trace_message="PID 7448: dsc_lib::functions::parameters: 31: parameters function"
2025-11-26T06:29:13.468270Z ERROR dsc_lib::dscresources::command_resource: 962: trace_message="PID 7448: Parser: Parameter 'SafemodeAdministratorPassword' not found in context"
2025-11-26T06:29:13.468696Z DEBUG dsc_lib::dscresources::command_resource: 710: Process 'dsc' id 7448 exited with code 2
2025-11-26T06:29:13.469043Z ERROR dsc_lib::dscresources::command_resource: 780: Failed to run process 'dsc': Command: Resource 'dsc' [exit code 2] manifest description: Resource error
2025-11-26T06:29:13.470055Z ERROR dsc::subcommand: 212: Command: Resource 'dsc' [exit code 2] manifest description: Resource error
PS C:\DSC\config>
Error details

Environment data
Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
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.8

Visuals

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reported dsc config test command with the two YAML files and tracing the Microsoft.DSC/Group path. Read the dsc_lib::configure and dsc_lib::parser entry points shown in the logs, then verify that SafemodeAdministratorPassword resolves inside both nested groups without the parameter-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.