I've this simple configuration, when I run the Dsc-StartConfiguration the first time everything goes well, the database gets deployed and all the tables are there.
xDatabase DeployDac
{
Ensure = "Present"
SqlServer = "."
SqlServerVersion = "2012"
DatabaseName = "TailspinToys"
Credentials = (New-Object System.Management.Automation.PSCredential("sa", (ConvertTo-SecureString "xxxx" -AsPlainText -Force)))
DacPacPath = $sourceFiles + "Tailspin.Schema.DacPac"
DacPacApplicationName = "Tailspin"
}
But, as you can see from this log, running a subsequent time it gives errors.
VERBOSE: [WEBTEST2]: LCM: [ Start Resource ] [[xDatabase]DeployDac]
VERBOSE: [WEBTEST2]: LCM: [ Start Test ] [[xDatabase]DeployDac]
VERBOSE: [WEBTEST2]: LCM: [ End Test ] [[xDatabase]DeployDac] in 0.0000 seconds.
VERBOSE: [WEBTEST2]: LCM: [ Start Set ] [[xDatabase]DeployDac]
VERBOSE: [WEBTEST2]: [[xDatabase]DeployDac]Dac Deploy Failed
VERBOSE: [WEBTEST2]: LCM: [ End Set ] [[xDatabase]DeployDac] in 1.1560 seconds.
VERBOSE: [WEBTEST2]: LCM: [ End Resource ] [[xDatabase]DeployDac]
If I remove a table to verify if the dacpac correctly restore it, nothing happens. Also even if I use -Verbose I'm not able to understand what goes wrong with dacpac, because DSC resource is only telling me that "Dac Deploy FAiled".
I wish
1) The resource should return real error if the dacpac does not gets deployed
2) I wish to know the output of the dacpac to troubleshoot the error
Gian Maria.
Ricci Gian Maria. (http://www.codewrecks.com)