How do I properly rename a module ending in *-master.zip?

Welcome Forums DSC (Desired State Configuration) How do I properly rename a module ending in *-master.zip?

This topic contains 4 replies, has 2 voices, and was last updated by

 
Participant
2 years, 7 months ago.

  • Author
    Posts
  • #38432

    Participant
    Points: 0
    Rank: Member

    I have found several modules I would like to use with DSC – eg;

    PackageManagementProviderResource-master.zip

    https://github.com/PowerShell/PackageManagementProviderResource

    The zip offered to download ends in -master.zip instead of the version name... which I cannot find in the package anywhere. Don't I need to rename this package with the version appended and then create a checksum – or has this changed? ..or maybe I'm just lost!? 🙂

  • #38442

    Participant
    Points: -19
    Rank: Member

    The version will be inside the .psd1 file that is the manifest of the module. It will be under ModuleVersion.

    You still need that module zipped with the version appended and to create a checksum and send them both to the pull server.

  • #38447

    Participant
    Points: 0
    Rank: Member

    Ok thanks! What does the zip contents folder structure look like? Should it be:

    PackageManagementProviderResource-1.0.1.11zip > PackageManagementProviderResource >
    1.0.1.11

    Each of those folders?

  • #38450

    Participant
    Points: -19
    Rank: Member

    Based on

    https://msdn.microsoft.com/en-us/powershell/dsc/pullserver

    Towards the bottom,in the section called DSC resource module package format, you should be removing the version folder.

    Note that you downloaded a repository from github. That's why you had -master at the end of the file name to denote the master branch. Normally you would get the DSC resource package from the PowerShell Gallery, once you do get it from there, if you look at the folder structure you'll see it correct, but if you want to get it from github for the purposes of delivering it via the pull server to the nodes, you'll have to do those extra steps.

    Hope this helped 🙂

  • #38451

    Participant
    Points: 0
    Rank: Member

    Very useful!!! Thank you very much!!!

The topic ‘How do I properly rename a module ending in *-master.zip?’ is closed to new replies.