DscResources
DscResources copied to clipboard
What does this module provide beyond the built-in PackageManagement DSC module?
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"
}
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 :)