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

Issue with specifying image with ParentVhd #147

Closed
jolwh opened this issue Nov 15, 2021 · 2 comments
Closed

Issue with specifying image with ParentVhd #147

jolwh opened this issue Nov 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@jolwh
Copy link

jolwh commented Nov 15, 2021

Describe the bug
The ParentVhd parameter doesn't seem to access a specified image or create a clone. Running a New-DcnClone as below does not return any errors or output and does not create a clone.

New-DcnClone -SqlInstance MyInstance -ParentVhd \path\to\image\DB1_20211115134729.vhdx -Destination Y:\CLONES\CLONE1\ -CloneName Clone1

Also tried above command with local path for the image instead of network. Same result.

Running the command with -debug gets you to the "Testing module setup" step but goes no further. When running with the UseLastFullBackup parameter it brings you through the whole process and successfully creates a clone but for our use case we need multiple images taken at different points in time so need to be able to specify an image to use for a clone.

Environmental data

We're running with the latest version.

Version Name Repository Description


0.10.47 dbaclone PSGallery Module for cloning SQL Server databases

  • PowerShell:
    PS C:\scripts> $PSVersionTable.PSVersion

Major Minor Build Revision


5 1 14393 4583

@jolwh jolwh changed the title Issue with getting ParentVhd parameter to work Issue with specifying image with ParentVhd Nov 15, 2021
@blitzmann
Copy link
Contributor

I believe this is the same as #176 , which I've just submitted a fix for. I didn't see this issue before I made mine unfortunately

@jolwh
Copy link
Author

jolwh commented Mar 31, 2022

I've tested the fix for this in the latest release. Working as expected. Thank you!

@sanderstad sanderstad added the bug Something isn't working label Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants