title: Get-AzDataLakeStoreItem returns GETFILESTATUS failed with Unknown Error for valid items
body: <p>I'm writing a powershell script to setup a new Data Lake store gen1 account, and create folders with updated ACLs. The New-AzDataLakeStoreAccount statement works fine; New-AzDataLakeStoreItem and Get-AzDataLakeStoreItem fail with similar Unknown Error.</p>
  
  <p>Following powershell code will create a new Data Lake store. I have a resourcegroup and security group in the subscription as listed below. The second and third scripts for listing and adding a folder fail. I'm using <a href="https://shell.azure.com" rel="nofollow noreferrer">https://shell.azure.com</a> to execute the powershell.</p>
  
  <pre><code>New-AzDataLakeStoreAccount -ResourceGroupName "ade-dev-eastus2" -Name "adedeveastus2" -Location "East US 2" -DefaultGroup (Get-AzADGroup -DisplayName "Technical Operations").Id -Encryption ServiceManaged -Tag @{User="ADE";}-Tier Consumption
  
  Get-AzDataLakeStoreItem -AccountName "adedeveastus2" -Path "/"
  
  New-AzDataLakeStoreItem -AccountName "adedeveastus2" -Path "/Staging" -Folder
  </code></pre>
  
  <p>Following is an error message for Get-AzDataLakeStoreItem</p>
  
  <blockquote>
    <p>Get-AzDataLakeStoreItem : Error in getting metadata for path /.
    Operation: GETFILESTATUS failed with   Unknown Error: Token Length is 6. Token is most probably malformed. Source:  StackTrace: .
    Last encountered exception thrown after 5 tries. [There was an error retrieving the managed service access token for resource '<a href="https://datalake.azure.net" rel="nofollow noreferrer">https://datalake.azure.net</a>' using the URI '<a href="http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fdatalake.azure.net&amp;api-version=2018-02-01" rel="nofollow noreferrer">http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fdatalake.azure.net&amp;api-version=2018-02-01</a>'.  Please check that this managed service is configured to emit tokens at this address and that the associated managed service identity has the appropriate role assignment and try logging in again.,Token Length is 6. Token is most probably malformed.,Token Length is 6. Token is most probably malformed.,Token Length is 6. Token is most probably malformed.,Token Length is 6. Token is most probably malformed.]
    [ServerRequestId:]
    At line:1 char:1
    + Get-AzDataLakeStoreItem -Account "adedeveastus2" -Path "/"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzDataLakeStoreItem], AdlsException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.DataLakeStore.GetAzureDataLakeStoreItem</p>
  </blockquote>
  
  <p>The error returned when using a Windows Powershell host is more descriptive.</p>
  
  <blockquote>
    <p>Operation: GETFILESTATUS failed with Unknown Error: The 'User-Agent' header must be modified using the appropriate property or method.</p>
  </blockquote>
  
  <p>I would expect to get back a DataLakeStoreItem object, and things like Name and Path. I think a general error for other users of ADL or the Cloud shell powershell?</p>