title: Is there a way to get details of which VM connected to which Log Analytics Workspace using Powershell?
body: <p>I'm looking for a way to get list of VMs with their respective Log Analytics Workspaces (if that VM is connected to Log Analytics workspace) using PowerShell. </p>
  
  <p>Column 1 should be VM names, Column 2 should be corresponding LA Workspace name.</p>
  
  <p>I'm stuck with it and any suggestions will be helpful.</p>
  
  <p>Thanks.</p>