title: How to connect existing Automation Account and Log Analytics workspace in Azure?
body: <p>I have one Log Analytics workspace "demo-law-sea" and one Automation Account "demo-aa-sea" in the same region of Azure. I want to create "Start/Stop VMs during off-hours". </p>
  
  <p>It requests a Log Analytics workspace and an Automation Account. I simply choose "demo-law-sea", but I cannot choose "demo-aa-sea" because they are not linked. </p>
  
  <p>Then I go to both Log Analytics workspace and Automation Account to see if I can link them together. Either one has Related Resource to refer to the other, but they have only unlink button but not link.</p>
  
  <p>To proceed I create a new Automation Account with selected Log Analytics workspace while creating "Start/Stop VMs during off-hours", then I delete the existing Automation Account "demo-aa-sea". </p>
  
  <p>Is there a way to link existing Log Analytic workspace and Automation Account? Any prerequisites? Thanks.</p>