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

SqlSetup: Install fails - DSC_SqlSetup.psd1 could not be found #1595

Closed
mKenfenheuer opened this issue Jul 17, 2020 · 1 comment
Closed

SqlSetup: Install fails - DSC_SqlSetup.psd1 could not be found #1595

mKenfenheuer opened this issue Jul 17, 2020 · 1 comment
Labels
duplicate The issue or PR is the duplicate of another.

Comments

@mKenfenheuer
Copy link

Details of the scenario you tried and the problem that is occurring

Verbose logs showing the problem

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Confirm:$false
Install-Module -Name SqlServerDsc -Repository PSGallery -SkipPublisherCheck -Confirm:$false

Configuration SQLInstall
{
     Import-DscResource -ModuleName SqlServerDsc

     node localhost
     {
          WindowsFeature 'NetFramework45'
          {
               Name   = 'NET-Framework-45-Core'
               Ensure = 'Present'
          }

          SqlSetup 'InstallDefaultInstance'
          {
               SecurityMode        = 'SQL'
               SQLUserDBDir        = 'D:\SQL\UserDB\'
               SQLUserDBLogDir     = 'D:\SQL\UserDB\'
               SQLTempDBDir        = 'D:\SQL\TempDB\'
               SQLTempDBLogDir     = 'D:\SQL\TempDB\'
               SQLBackupDir        = 'D:\SQL\Backup\'
               InstanceName        = 'MSSQLSERVER'
               Features            = 'SQLENGINE'
               SourcePath          = 'C:\DSC-Config\SQL2017'
               SQLSysAdminAccounts = @('Administratoren')
               DependsOn           = '[WindowsFeature]NetFramework45'
          }
     }
}
SQLInstall -OutputPath .\Config
Start-DscConfiguration -Path .\Config -Wait -Force -Verbose

SQL Server edition and version the target node is running

SQL Server 2017 Enterprise

SQL Server PowerShell modules present on the target node

Name      Version    Path                                                                          
----      -------    ----                                                                          
SqlServer 21.1.18226 C:\Program Files\WindowsPowerShell\Modules\SqlServer\21.1.18226\SqlServer.psd1

The operating system the target node is running

OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-Bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : de-DE
OsMuiLanguages       : {de-DE}

Version and build of PowerShell the target node is running

Name                           Value                                                                                        
----                           -----                                                                                        
PSVersion                      5.1.17763.1                                                                                  
PSEdition                      Desktop                                                                                      
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                      
BuildVersion                   10.0.17763.1                                                                                 
CLRVersion                     4.0.30319.42000                                                                              
WSManStackVersion              3.0                                                                                          
PSRemotingProtocolVersion      2.3                                                                                          
SerializationVersion           1.1.0.1                                                                                      

Version of the DSC module that was used

Name         Version Path                                                                            
----         ------- ----                                                                            
SqlServerDsc 14.1.0  C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\14.1.0\SqlServerDsc.psd1

Detailed Error Message / Log Output

WARNUNG: Von der Konfiguration "SQLInstall" wird mindestens eine integrierte Ressource heruntergeladen, ohne die zugehörigen 
Module explizit zu importieren. Fügen Sie Ihrer Konfiguration "Import-DscResource –ModuleName 'PSDesiredStateConfiguration'" 
hinzu, damit diese Meldung nicht mehr angezeigt wird.


    Verzeichnis: C:\DSC-Config\Config


Mode                LastWriteTime         Length Name                                                                       
----                -------------         ------ ----                                                                       
-a----       17.07.2020     11:29           3430 localhost.mof                                                              
AUSFÜHRLICH: Vorgang "CIM-Methode aufrufen" mit den folgenden Parametern durchführen, "'methodName' = SendConfigurationApply,
'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration".
AUSFÜHRLICH: Vom Computer 'WIN-T85G1FQQ5AN' mit Benutzer-SID 'S-1-5-21-3859010636-3025912086-3338911287-500' ist ein LCM-Meth
odenaufruf eingegangen.
AUSFÜHRLICH: [WIN-T85G1FQQ5AN]: LCM:  [ StartenFestlegen]
AUSFÜHRLICH: [WIN-T85G1FQQ5AN]: LCM:  [ BeendenFestlegen]
Importieren des Moduls DSC_SqlSetup mit Fehler Die Windows PowerShell-Datendatei "DSC_SqlSetup.psd1" kann nicht im 
Verzeichnis "C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\14.1.0\DscResources\DSC_SqlSetup\en-US\" oder einem 
übergeordneten Verzeichnis gefunden werden. fehlgeschlagen.
    + CategoryInfo          : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : ImportModuleFailed
    + PSComputerName        : localhost
 
AUSFÜHRLICH: Vorgang "CIM-Methode aufrufen" wurde abgeschlossen.
AUSFÜHRLICH: Die Ausführung des Konfigurationsauftrags hat 4.837 Sekunden gedauert.
Importing the DSC_SqlSetup module with error The Windows PowerShell DSC_SqlSetup.psd1 data file cannot be imported from
directory "C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\14.1.0\DscResources\DSC_SqlSetup\en-US\" or a parent directory.

Any ideas?

@johlju johlju added the duplicate The issue or PR is the duplicate of another. label Jul 19, 2020
@johlju
Copy link
Member

johlju commented Jul 19, 2020

Closing this in favor of issue #1596.

@johlju johlju closed this as completed Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue or PR is the duplicate of another.
Projects
None yet
Development

No branches or pull requests

2 participants