title: Getting Azure VM OS name using PowerShell
body: <p>I have been trying to get the VM OS name from Microsoft Azure using PowerShell.</p>
  
  <p>I think I am very close to the solution but I don't know where I'm going wrong.</p>
  
  <p>This is the command that I am using to get the VM details:</p>
  
  <pre><code>Get-AzureRmVM -ResourceGroupName TEST -Name VF-Test1 | Select OsType
  </code></pre>
  
  <p>The answer I get is just blank.</p>
  
  <p>When running the following command:</p>
  
  <pre><code>Get-AzureRmVM -ResourceGroupName TEST -Name VF-Test1
  </code></pre>
  
  <p>I get all the details that belong to that VM.</p>