Azure / GuestConfiguration

PowerShell module for creating, testing, and publishing custom Guest Configuration
MIT License
5 stars 2 forks source link

New-GuestConfigurationPackage encounters issue when copying files and requires -Force #200

Closed mgreenegit closed 2 years ago

mgreenegit commented 3 years ago

It isn't clear why this is happening, but custom resources are being copied once per resource instance and so after the first, -Force is required or Copy-Item will return that the files already exist.

gaelcolas commented 3 years ago

Is it the copy or is it when the MOF is read and it sees multiple instances of a Resource? A screenshot/copy of the error message would help greatly.

If it's the DSC resource seen several time, that's indeed an issue I've seen, but it comes from PSDSC [DscClassCache]::ImportInstances().

github-actions[bot] commented 3 years ago

This issue has not been updated within 14 days

amitsara commented 3 years ago

needs investigation to understand the issue. for now marking as blocker.