title: Azure DSC upload a blob to Azure VM
body: <p>I need to copy a file from an azure storage account to a vm via azure DSC.</p>
  <p>Below is what i tried</p>
  <p>Configuration ExampleDSC
  {
  Install-Module -Name 'xPSDesiredStateConfiguration' -force
  Import-DscResource -Name 'xPSDesiredStateConfiguration'</p>
  <pre><code>Node localhost
  {
      File CreateFolder
      {
          Type            = 'Directory'
          DestinationPath = 'C:\NewFolder'
          Ensure          = &quot;Present&quot;
      }
  
      xRemoteFile remotefile {
  # for uri generate a sas token then copy the sas token url in the uri line below
            Uri             = &quot;storageblob+SAS token&quot;
            DestinationPath = &quot;C:\NewFolder\&quot;
            DependsOn       = &quot;[File]CreateFolder&quot;
            MatchSource     = $false 
  
  
  }
  
  }
  </code></pre>
  <p>But I am getting below error  - please help</p>
  <p>Error message: &quot;The DSC Extension received an incorrect input: An error occurred while
  executing script or module 'importcertificate.ps1':  At C:\Packages\Plugins\Microsoft.Powershell.DSC\2.80.1.0\DSCWork\importcertificate.1\importcertificate.ps1:4 char:6</p>
  <ul>
  <li>
  <pre><code> Import-DscResource -Name 'xPSDesiredStateConfiguration'
  </code></pre>
  </li>
  </ul>
  <p>Unable to load resource 'xPSDesiredStateConfiguration': Resource not found..
  Please correct the input and retry executing the extension.&quot;</p>
  <p>Should i only use : install  PSDesiredStateConfiguration?</p>