Skip to main content
IN PREVIEW

Easily enable Operational Insights for Azure virtual machines

Published date: January 29, 2015
Enable Operational Insights on your virtual machines to collect, search & analyze event/IIS logs, and perform deeper analysis, including malware assessment, update assessment, change tracking, and SQL Server assessment. You can now easily enable Operational Insights on your virtual machines by using Windows PowerShell or with a single click from the Azure Management Portal.To enable Operational Insights from the management portal, navigate to your Operational Insights workspace and select the Servers tab. Here you will see a list of your virtual machines. Select the virtual machine you want to install the agent on, and click the Enable Op Insights button.Operational Insights in the Azure PortalIf want to enable Operational Insights on several virtual machines, you can use  Windows PowerShell. Operational Insights uses the Microsoft Monitoring Agent Azure Virtual Machine extension, and you can use a Windows PowerShell command similar to the following example:
Add-AzureAccount
$workspaceId="enter workspace here"
$workspaceKey="enter workspace key here"
$hostedService="enter hosted service here">
$vm = Get-AzureVM –ServiceName $hostedService
Set-AzureVMExtension -VM $vm -Publisher 'Microsoft.EnterpriseCloud.Monitoring' -ExtensionName 'MicrosoftMonitoringAgent' -Version '1.*' -PublicConfiguration "{'workspaceId':  '$workspaceId'}" -PrivateConfiguration "{'workspaceKey': '$workspaceKey' }" | Update-AzureVM -Verbose
You can find your Workspace ID and Workspace Key on the Servers and Usage page of the Operational Insights portal.The Update Assessment, Change Tracking, Malware Assessment, and SQL Assessment intelligence packs work with Microsoft Monitoring Agent to provide deeper insights about your virtual machines. If you haven’t already, you can enable these intelligence packs when you are signed-in to the Operational Insights portal.To learn more, including how you can sign up, see Operational Insights.
  • Virtual Machines
  • Features

Related Products