Skip to content

MIssing cmdlet "ConvertFrom-Yaml" #24654

Closed

Description

Summary of the new feature / enhancement

Missing painfully an option to Convert a YAML to a Powershell Object like

ConvertFrom-Yaml

Right now, I must use a Workaround: https://www.powershellgallery.com/packages?q=powershell-yaml

Almost 100 Mio Downloads should speak for itself.

THanks for taking this into consideration.

Proposed technical implementation details (optional)

https://www.powershellgallery.com/packages?q=powershell-yaml

Activity

  1. added
    Issue-Enhancement
    Needs-Triage
    on Dec 10, 2024
  2. kilasuit commented on Dec 10, 2024

    @kilasuit
    Collaborator

    This has been asked for previously in #3607 #16785 #16819 & possibly more too and ultimately has been declined each time to be added because we have a number of packages on the Gallery that provides this functionality already, with no .NET native YAML functionality.

    Some additional background conversations in dotnet repos dotnet/runtime#83313 & dotnet/runtime#109199

    We've also had discussions around providing a community driven "DevOps" meta-module on the gallery, that works similar to the Az/Microsoft.Graph module for a download once requirement and would include a module like PowerShell-Yaml along with a number of others.

    I am tempted in marking this as resoltion answered & duplicate, but will leave doing so right now as to allow for other comments, however this would be for the cmdlets WG to discuss so marking it for under that WG & it may be re-discussed in the New Year

  3. kasini3000 commented on Dec 10, 2024

    @kasini3000

    I suggest building it in again.

  4. Gill-Bates commented on Dec 10, 2024

    @Gill-Bates
    Author

    Ryan Yates (@kilasuit) With this reasoning, all cmdlets that contain ConvertFrom/To would have to disappear from Powershell.

    I plead for a built-in solution that is tested and secure.

  5. kilasuit commented on Dec 10, 2024

    @kilasuit
    Collaborator

    Ryan Yates (@kilasuit) With this reasoning, all cmdlets that contain ConvertFrom/To would have to disappear from Powershell.

    I plead for a built-in solution that is tested and secure.

    Just trying to give some additional context on a number of historical discussions for all reading this and linking issues for additional reading.

    This is becuase as we've discussed previously for there to be a slim PowerShell package & I raised #1979 to reduce the need for all the modules to have to be a part of this codebase, making this repo eaiser to manage and eventually, make it much easier for people to start contributing pull requests with new features or fixes across not only the PowerShell Team owned modules, but also the wider community ones too.

    Doing the above in future where just about everything is removed is just one part, as well having a The kitchen sink edition where everything is bundled for you, which could then in future include built in cmdlets like yml ones.

    Other modules exist other than PowerShell-yaml like Yayaml

    On a flipside for us to consider is that the PowerShell team just released Microsoft.PowerShell.PlatyPS which uses the same dependency as PowerShell-Yaml & Yayaml too & if dotnet actually built a System.text.yaml library then comments like that are less for us to need to do anything about.

    I would far rather those discussions play out in the specific module than the PowerShell project having to decide on the one true parser or myriad of options to cater for everyone's requirements.

    That alone, is enough of a reason for us to keep this issue open and for it to be a discussion into the New year

    But I don't want to set hopes that it will happen - because the PowerShell Team is nowhere near the size of the dotnet teams, nor is it the size of the Windows teams - so there's always a need to prioritise the workloads that the team can take on, along with guidance of the working group members and insights from the community too.

    I am both for us bundling things in when it makes sense to & where the support burden is reasonable & doens't really stretch an already stretched team or propped up by a large amount of community goodwill and often sometimes significant amount of time and effort beyond it being part of "the day job" to get things enhanced or fixed. This is because I know that there are loads of us that spend lots of time in here and other areas around PowerShell due to our desire to make this product and community ecosystem better.

  6. StephenHodgson commented on Dec 11, 2024

    @StephenHodgson

    I am tempted in marking this as resoltion answered & duplicate

    You'd think with all the links and references where the community asked for first party support, it'd have enough momentum to become reality 😏

    Especially today now that DevOps is locked into YAML, we desperately need a way to deal with this in an official capacity. (What I wouldn't do to be able to define my workflows with json 😩)

  7. SteveL-MSFT commented on Jan 15, 2025

    @SteveL-MSFT
    Member

    The @PowerShell/wg-powershell-cmdlets discussed this. We understand and agree that YAML is used heavily in the industry and would also like to see it supported natively within PS7. Adding a new dependency on an external assembly will introduce dependency collisions. We've already experienced such issues in the past. We also recognize that the popularity of the YAML modules on PSGallery means that YAML support is needed, but also that many folks are ok using 3rd party modules for YAML. If YAML support shows up in .NET runtime, we would certainly approve of builtin YAML cmdlets in PS7.

  8. added
    Resolution-Declined
    WG-Reviewed
    and removed
    Needs-Triage
    on Jan 15, 2025
  9. microsoft-github-policy-service commented on Jan 17, 2025

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as declined and has not had any activity for 1 day. It has been closed for housekeeping purposes.

  10. microsoft-github-policy-service commented on Jan 17, 2025

    @microsoft-github-policy-service
    Contributor

    📣 Hey Gill Bates (@Gill-Bates), how did we do? We would love to hear your feedback with the link below! 🗣️

    🔗 https://aka.ms/PSRepoFeedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-DeclinedWG-CmdletsWG-Reviewed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions