Onboarding Azure VMs into OMS in 3 Steps

Tired of manually downloading and installing OMS agent in your Azure VMs? You no longer have to worry about that as we have a new way to install the OMS agent for Azure VMs. First navigate to your OMS work space through Azure portal. Simply search for Log Analytics (OMS). Select your OMS workspace and then select the  Virtual Machines button. Now select the desired Azure Virtual Machine and click Connect. The VM will automatically start enabling the OMS agent and update itself. Also you can use Azure Resource Manager to enable OMS agent inside an Azure VM. Note that you need to provide the OMS Workspace ID and OMS Workspace Key which can be found in the OMS Portal under Settings > Connected Sources. All you have to do is update your ARM templates with below resource snippets as required. For Windows VMs { "type": "extensions", "name": "Microsoft.EnterpriseCloud.Monitoring", "apiVersion": "[variables('apiVersion')]", "location": "[resourceGroup().location]", "dependsOn": [ "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" ], "properties": { "publisher": "Microsoft.EnterpriseCloud.Monitoring", "type": "MicrosoftMonitoringAgent", "typeHandlerVersion": "1.0", "autoUpgradeMinorVersion": true, "settings": { "workspaceId": "[parameters('workspaceId')]" }, "protectedSettings": { "workspaceKey": "[parameters('workspaceKey')]" } } } For Linux VMs { "type": "Microsoft.Compute/virtualMachines/extensions", "name": "<extension-deployment-name>", "apiVersion": "<api-version>", "location": "<location>", "dependsOn": [ "[concat('Microsoft.Compute/virtualMachines/', <vm-name>)]" ], "properties": { "publisher": "Microsoft.EnterpriseCloud.Monitoring", "type": "OmsAgentForLinux", "typeHandlerVersion": "1.0", "settings": { "workspaceId": "<workspace id>" }, "protectedSettings": { "workspaceKey": "<workspace key>" } } } 0...

Read More