Hi guys!
I'm beginning my path with DSC and I try to setup an sql server on a 2012R2 machine.
The script is as follow:
xSqlServerSetup 'MSSQLSERVER'
{
DependsOn = "[WindowsFeature]NET-Framework-Core"
SourcePath = '\\ilqhfaatc1vw004\c$\sql'
SetupCredential = $SetupCredential
InstanceName = 'MSSQLSERVER'
Features = 'SQLENGINE,FULLTEXT,RS,AS,IS'
SQLSysAdminAccounts = 'fse_admin'
and I get the following error which I cannot figure out for the life of me:
PSDesiredStateConfiguration\Node : The term 'xSQLServer\xSqlServerSetup' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
t
ry again.
At C:\Users\310230221\Desktop\dscsql.ps1:4 char:1
+ Node ilqhfaatc1vw004 {
+ ~~~~
+ CategoryInfo : ObjectNotFound: (xSQLServer\xSqlServerSetup:String) [PSDesiredStateConfiguration\node], ParentCon
tainsErrorRecordException
+ FullyQualifiedErrorId : CommandNotFoundException,PSDesiredStateConfiguration\node
WARNING: The configuration 'dscsql' is loading one or more built-in resources without explicitly importing associated modules. Add Import-DscResource –ModuleName 'PSDesiredStateConfiguration' to your configuration to avoid this message.
Errors occurred while processing configuration 'dscsql'.
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1:line:3705 char:5
+ t <<<< hrow $ErrorRecord
I know that the x's are expiremental but it seems that version 7 has it (which is the newest) and 6 too.
Wasn't able to find anything on the internet on the issue.