title: Getting Undefined DSC resource 'SqlSetup' even when the module is installed
body: <p>I am trying to install SqlServer via DSC, but I keep hitting this error</p>
  <pre><code>Exception calling &quot;NewScriptBlock&quot; with &quot;1&quot; argument(s): &quot;At line:10 char:5
  +     Import-DscResource -ModuleName 'SqlServerDsc'
  +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Could not find the module 'SqlServerDsc'.
  
  At line:438 char:9
  +         SqlSetup 'InstallDefaultInstance'
  +         ~~~~~~~~
  </code></pre>
  <p>My DSC configuration snippet looks like this</p>
  <pre><code>Configuration InstallSoftware
  {
  param
  (
      $ComputerNames
  )
  Import-DSCResource -ModuleName PSDesiredStateConfiguration
  Import-DSCResource -Module SqlServerDsc
  
  Node $ComputerNames
  {
      WindowsFeature 'NetFramework45'
      {
          Name   = 'NET-Framework-45-Core'
          Ensure = 'Present'
      }
  
      SqlSetup 'SqlInstall'
      {
          InstanceName        = 'localhost\mssql2019'
          Features            = 'SQLENGINE'
          Action              = 'Install';
          SourcePath          = 'C:\SQL2019'
          SQLSysAdminAccounts = @('Administrators')
          DependsOn           = '[WindowsFeature]NetFramework45'
      }  
  }
  
  InstallSoftware 
  </code></pre>
  <p>I am quite positive that the SqlServer has been installed in the remote server.</p>
  <ol>
  <li>Get-DscResource -Module SqlServerDsc returned the list of resources</li>
  <li>And the folder exists in C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc</li>
  </ol>
  <p>Any feedback/advice is highly appreciated.
  Thank you so much for your time.</p>