Skip to content

What does this module provide beyond the built-in PackageManagement DSC module? #19

Description

@Borgquite

Hey,

Found this today but a bit confused as to what it's for. Doesn't it replicate the functionality already available in the built-in PackageManagement DSC module?

https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/packagemanagement/packagemanagementsourcedscresource?view=dsc-1.1

https://docs.microsoft.com/en-us/powershell/dsc/reference/resources/packagemanagement/packagemanagementdscresource?view=dsc-1.1

Let me know if I'm missing something...

Import-DscResource -ModuleName PackageManagement -ModuleVersion 1.4.7

PackageManagementSource "PSGallery"
{
    Name = "PSGallery"
    ProviderName = "PowerShellGet"
    SourceLocation = "https://www.powershellgallery.com/api/v2"
    InstallationPolicy = "Trusted"
    Ensure = "Present"
}
PackageManagement "ModuleToImport"
{
    Name = "ModuleToImport"
    Source = "PSGallery"
    DependsOn = "[PackageManagementSource]PSGallery"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions