Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Borgquite opened this issue Mar 28, 2022 · 1 comment

Comments

@Borgquite
Copy link

Borgquite commented Mar 28, 2022

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"
}
@harcamSpark
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants