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

New-DcnClone example does not work #176

Closed
blitzmann opened this issue Mar 11, 2022 · 0 comments · Fixed by #177
Closed

New-DcnClone example does not work #176

blitzmann opened this issue Mar 11, 2022 · 0 comments · Fixed by #177

Comments

@blitzmann
Copy link
Contributor

The documentation shows this as an example:

New-DcnClone -SqlInstance SQLDB1 -ParentVhd C:\Temp\images\DB1_20180623203204.vhdx -Destination C:\Temp\clones\ -CloneName DB1_Clone1

However, this doesn't do anything. The reason for this is because the script loops over databases:

foreach ($db in $Database) {

However, setting a database parameter throws an error

New-DcnClone : Parameter set cannot be resolved using the specified named parameters.

It never invokes the function due to the parameter set.

I assume if providing a ParentVHD, you don't want to provide a list of databases since you're just pulling a single image

blitzmann added a commit to blitzmann/dbaclone that referenced this issue Mar 11, 2022
…ase for it.

Additionally, add a new parameter to generate a clone for an image ID, in case that is already known
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

Successfully merging a pull request may close this issue.

1 participant