How to retrieve azure oms workspace id and key?
You could use Azure Power Shell to do this, for example:
$rgname = "shuioms"$omsname = "shuioms"##get workspaceid$oms=Get-AzureRmOperationalInsightsWorkspace -ResourceGroupName shuioms -Name shuioms$workspaceID = $oms.CustomerId#get oms key$key=Get-AzureRmOperationalInsightsWorkspaceSharedKeys -ResourceGroupName shuioms -Name shuioms
Another option that is very convenient to find Azure Resource IDs is the resource explorer. Navigate your browser to https://resources.azure.com/