Easily enable Operational Insights for Azure virtual machines

2015年1月29日

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 Portal If 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.

免费帐户

现在注册即获得 $200 Azure 信用额度

免费开始

Visual Studio

订阅者每年可获得高达 $1800 的 Azure 服务

立即激活

初创企业

加入 BizSpark 计划并获得免费的 Azure 服务

了解更多