title: Is it possible to retrieve the oms workspace id inside my ARM template
body: <p>I create an oms workspace through ARM templates and deploy them to azure through azure devops.
  Because I have an automated mindset I also deploy the virtual machine ARM through azure devops.</p>
  
  <p>Because I don't want to deploy the OMS workspace and go to the portal and copy the workspace id to paste this in the arm template parameters of the virtual machine to point the VM extension to the right workspace.</p>
  
  <p>My question now is if it is possible to connect these 2 in 1 deployment to deploy an oms workspace and export the workspace id to the vm arm deployment.</p>
  
  <p>So that I skip the manual step and automate the entire deployment.</p>
  
  <p>Source: I found a fellow automate thinking guy but there was no right answer on his question.
  <a href="https://github.com/MicrosoftDocs/azure-docs/issues/13787" rel="nofollow noreferrer">https://github.com/MicrosoftDocs/azure-docs/issues/13787</a> </p>
  
  <p>Does anyone have any clue if this is possible I searched and not found any way to do this atm.</p>