Skip to content

Have a PSScript resource #885

Open
Open
@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature / enhancement

As part of helping customers transition from script to declarative and fill in the gap where a resource doesn't exist yet, we should have a Transitional resource that allows inline PSScript.

Proposed technical implementation details (optional)

Some considerations:

  • Probably allow for separate get/set/test/export
  • Probably not allow just referencing a .ps1 as it hides the script even though the script block could do this
  • Probably emit a warning it's not idempotent
  • Have separate resources for WinPS vs PS7
  • Probably detect if any output is not JSON and convert it
  • Auto-convert Verbose, Info, Debug streams to equivalent traces (Debug would be Trace level as it might have sensitive info)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions