You can deploy a Windows VM with OMS integration. You can have the OMS extension installed. And then you can onboard the VM to a specified workspace.
You need already have an OMS workspace setup in your subscription. You need to have the following information about this OMS Workspace:
- OMS workspace ID
- OMS workspace Key
You may obtain the workspace ID and key by going to the Connected Sources tab in the Settings page in the OMS Portal or to the Direct Agent blade in the Azure portal.
In the Azure Portal go to the Log Analytics -> Click on the OMS Workspace you want to use. Click on the “OMS Portal” to navigate to the OMS Portal.