-
Notifications
You must be signed in to change notification settings - Fork 55
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
I have a resource that implements Set and Test. DSC should be able to make use of those two methods and not require Get capability but currently it does regardless of Set return type being set to null or state.
Steps to reproduce
- Create a resource that has
SetandTestcapabilities - Call
Set
Expected behavior
DSC calls `Test` and if `_inDesiredState` is false it calls `Set`.Actual behavior
2025-12-29T04:19:18.844678Z ERROR Not implemented: getError details
dsc -l trace resource set -r OpenDsc.Archive.Zip/Expand -i (@{ archivePath = 'c:\temp\test.zip'; destinationPath = 'c:\temp\zip-test' } | ConvertTo-Json)
2025-12-29T04:17:42.260211Z INFO dsc::util: 432: Trace-level is Trace
2025-12-29T04:17:42.260410Z DEBUG dsc: 46: Running DSC version: 3.2.0-preview.10
2025-12-29T04:17:42.260945Z DEBUG dsc_lib::discovery::command_discovery: 493: Searching for resources: [DiscoveryFilter { type: "opendsc.archive.zip/expand", version: None }]
2025-12-29T04:17:42.261101Z INFO dsc_lib::discovery::command_discovery: 217: Discovering 'Extension' using filter: *
2025-12-29T04:17:42.261189Z DEBUG dsc_lib::discovery::command_discovery: 220: Using regex ^.*?$ as filter for adapter name
2025-12-29T04:17:42.261917Z DEBUG dsc_lib::util: 128: Found setting 'resourcePath' in C:\dsc\dsc_default.settings.json
2025-12-29T04:17:42.262239Z DEBUG dsc_lib::util: 138: Found setting 'resourcePath' in C:\dsc\dsc.settings.json
2025-12-29T04:17:42.262419Z DEBUG dsc_lib::util: 152: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-12-29T04:17:42.262601Z DEBUG dsc_lib::discovery::command_discovery: 137: DSC_RESOURCE_PATH: "C:\\Users\\Thomas\\Documents\\GitHub\\opendsc\\artifacts\\publish"
2025-12-29T04:17:42.262831Z DEBUG dsc_lib::discovery::command_discovery: 191: Using Resource Path: C:\Users\Thomas\Documents\GitHub\opendsc\artifacts\publish
2025-12-29T04:17:42.263448Z TRACE dsc_lib::discovery::command_discovery: 260: Found manifest: C:\Users\Thomas\Documents\GitHub\opendsc\artifacts\publish\OpenDsc.Resource.CommandLine.Windows.dsc.manifests.json
2025-12-29T04:17:42.265386Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Group' version 0.1.0 found
2025-12-29T04:17:42.265784Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/User' version 0.1.0 found
2025-12-29T04:17:42.266175Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Service' version 0.1.0 found
2025-12-29T04:17:42.266637Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Environment' version 0.1.0 found
2025-12-29T04:17:42.267009Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Shortcut' version 0.1.0 found
2025-12-29T04:17:42.267412Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/OptionalFeature' version 0.1.0 found
2025-12-29T04:17:42.267815Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows.FileSystem/AccessControlList' version 0.1.0 found
2025-12-29T04:17:42.268211Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.FileSystem/File' version 0.1.0 found
2025-12-29T04:17:42.268608Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.FileSystem/Directory' version 0.1.0 found
2025-12-29T04:17:42.268894Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Xml/Element' version 0.1.0 found
2025-12-29T04:17:42.269266Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Archive.Zip/Compress' version 0.1.0 found
2025-12-29T04:17:42.269645Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Archive.Zip/Expand' version 0.1.0 found
2025-12-29T04:17:42.270677Z INFO dsc_lib::discovery::command_discovery: 217: Discovering 'Resource' using filter: *
2025-12-29T04:17:42.270818Z DEBUG dsc_lib::discovery::command_discovery: 220: Using regex ^.*?$ as filter for adapter name
2025-12-29T04:17:42.271574Z DEBUG dsc_lib::util: 128: Found setting 'resourcePath' in C:\dsc\dsc_default.settings.json
2025-12-29T04:17:42.272173Z DEBUG dsc_lib::util: 138: Found setting 'resourcePath' in C:\dsc\dsc.settings.json
2025-12-29T04:17:42.272553Z DEBUG dsc_lib::util: 152: Setting 'resourcePath' not found in C:\ProgramData\dsc\dsc.settings.json
2025-12-29T04:17:42.272890Z DEBUG dsc_lib::discovery::command_discovery: 137: DSC_RESOURCE_PATH: "C:\\Users\\Thomas\\Documents\\GitHub\\opendsc\\artifacts\\publish"
2025-12-29T04:17:42.273261Z DEBUG dsc_lib::discovery::command_discovery: 191: Using Resource Path: C:\Users\Thomas\Documents\GitHub\opendsc\artifacts\publish
2025-12-29T04:17:42.273862Z TRACE dsc_lib::discovery::command_discovery: 260: Found manifest: C:\Users\Thomas\Documents\GitHub\opendsc\artifacts\publish\OpenDsc.Resource.CommandLine.Windows.dsc.manifests.json
2025-12-29T04:17:42.275693Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Group' version 0.1.0 found
2025-12-29T04:17:42.276093Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/User' version 0.1.0 found
2025-12-29T04:17:42.276483Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Service' version 0.1.0 found
2025-12-29T04:17:42.276850Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Environment' version 0.1.0 found
2025-12-29T04:17:42.277240Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/Shortcut' version 0.1.0 found
2025-12-29T04:17:42.277630Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows/OptionalFeature' version 0.1.0 found
2025-12-29T04:17:42.278024Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Windows.FileSystem/AccessControlList' version 0.1.0 found
2025-12-29T04:17:42.278398Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.FileSystem/File' version 0.1.0 found
2025-12-29T04:17:42.278778Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.FileSystem/Directory' version 0.1.0 found
2025-12-29T04:17:42.279184Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Xml/Element' version 0.1.0 found
2025-12-29T04:17:42.279672Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Archive.Zip/Compress' version 0.1.0 found
2025-12-29T04:17:42.280041Z TRACE dsc_lib::discovery::command_discovery: 304: Resource 'OpenDsc.Archive.Zip/Expand' version 0.1.0 found
2025-12-29T04:17:42.281010Z DEBUG dsc_lib::discovery::command_discovery: 511: Found 1 non-adapter resources
2025-12-29T04:17:42.281175Z TRACE dsc::util: 436: Input: Some("{\r\n \"archivePath\": \"c:\\\\temp\\\\test.zip\",\r\n \"destinationPath\": \"c:\\\\temp\\\\zip-test\"\r\n}"), File: None
2025-12-29T04:17:42.281353Z DEBUG dsc::util: 438: Reading input from command line parameter
2025-12-29T04:17:42.281621Z DEBUG dsc::resource_command: 141: OpenDsc.Archive.Zip/Expand implemented as Command
2025-12-29T04:17:42.281801Z DEBUG dsc_lib::dscresources::dscresource: 403: Invoking set for 'OpenDsc.Archive.Zip/Expand'
2025-12-29T04:17:42.281986Z DEBUG dsc_lib::dscresources::command_resource: 82: Invoking set for 'OpenDsc.Archive.Zip/Expand'
2025-12-29T04:17:42.282157Z DEBUG dsc_lib::dscresources::command_resource: 859: Verify JSON for 'OpenDsc.Archive.Zip/Expand'
2025-12-29T04:17:42.284190Z ERROR dsc::resource_command: 216: Not implemented: geEnvironment data
Name Value
---- -----
PSVersion 7.6.0-preview.6
PSEdition Core
GitCommitId 7.6.0-preview.6
OS Microsoft Windows 10.0.26200
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.4
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Version
dsc 3.2.0-preview.10
Visuals
No response