DscResources icon indicating copy to clipboard operation
DscResources copied to clipboard

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

Open Borgquite opened this issue 2 years ago • 1 comments

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"
}

Borgquite avatar Mar 28 '22 13:03 Borgquite

This repo was created back in 2015... Maybe those DSCResources in PackageManagement module didn't exist back then.

Still, this comment gave me enough to get started on a DSC Config to get some VMs configured in Azure :)

harcamSpark avatar Sep 01 '22 04:09 harcamSpark