title: Powershell : How to get a JSON file content from URI instead of local disk
body: <p>Using Get-Content, I had developed my powershell script but later felt to move to cloud using storage repository used for templates. </p>
  
  <pre><code>$JsonContent = Get-Content $TFileUri | ConvertFrom-Json
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Get-Content : Cannot find drive. A drive with the name 'https' does not exist.</p>
  </blockquote>
  
  <p>I attempted adding -Raw parameter which had helped me in other occasions before piping to ConvertFrom-Json but it gave me the following error:</p>
  
  <pre><code>$JsonContent = Get-Content $TFileUri -Raw | ConvertFrom-Json
  </code></pre>
  
  <blockquote>
    <p>Get-Content : A parameter cannot be found that matches parameter name 'Raw.</p>
  </blockquote>
  
  <p>How to fetch a file from remote URI and workaround above challenge?</p>