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

xVMHyperV - Absent VM still tested for Vhd existence #145

Closed
FLeven opened this issue Feb 24, 2018 · 0 comments · Fixed by #163
Closed

xVMHyperV - Absent VM still tested for Vhd existence #145

FLeven opened this issue Feb 24, 2018 · 0 comments · Fixed by #163
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.

Comments

@FLeven
Copy link

FLeven commented Feb 24, 2018

Created a VHD -> Disc1
Created a VM -> VM1

Set VHD "Disc1" to 'Absent'
Set VM "VM1" to 'Absent

Everything ist removed, but you will get an error everytime the configuration is started/updated:

PowerShell DSC-Ressource "MSFT_xVMHyperV" Function "Test-TargetResource"

Error: "Vhd 'C:\Hyper-V\Virtual Hard Disks\localhost-OSDisk.vhdx' does not exist."
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure

I used the current release version on win10 - 1709

Test for "Absent" resources, should not be needed.

@johlju johlju added bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community. labels May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants