Install-SqlDscServer with -PrepareImage errors when InstanceName is specified #1960
Labels
bug
The issue is a bug.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
Problem description
We are trying to syspref a VM image that include sql server. I'm using the Install-SqlDscServer with the -PrepareImage option like
It errors with
If i remove the instanceName switch, it prompts me for InstanceName
Verbose logs
How to reproduce
Run the command (update the media path)
Install-SqlDscServer -PrepareImage -AcceptLicensingTerms -InstanceName 'MSSQLSERVER' -InstanceId 'MSSQLSERVER' -Features 'SQLENGINE' -MediaPath "D:\" -Force -Verbose
Expected behavior
Only pass InstanceName when needed
Current behavior
The cmdlet errors out.
Suggested solution
not sure yet
Operating system the target node is running
PowerShell version and build the target node is running
Module version used
The text was updated successfully, but these errors were encountered: