Enable VM Insights overview - Azure Monitor (2024)

  • Article

This article provides an overview of how to enable VM Insights to monitor the health and performance of:

  • Azure virtual machines.
  • Azure Virtual Machine Scale Sets.
  • Hybrid virtual machines connected with Azure Arc.
  • On-premises virtual machines.
  • Virtual machines hosted in another cloud environment.

Note

Configuring a Log Analytics workspace for using VM Insights by using the Log Analytics agent is no longer supported.

Installation options and supported machines

The following table shows the installation methods available for enabling VM Insights on supported machines.

MethodScope
Azure portalEnable individual machines with the Azure portal.
Azure PolicyCreate policy to automatically enable when a supported machine is created.
Azure Resource Manager templatesEnable multiple machines by using any of the supported methods to deploy a Resource Manager template, such as the Azure CLI and PowerShell.
PowerShellUse a PowerShell script to enable multiple machines.
Manual installVirtual machines or physical computers on-premises with other cloud environments.

Supported Azure Arc machines

VM Insights is available for Azure Arc-enabled servers in regions where the Arc extension service is available. You must be running version 0.9 or above of the Azure Arc agent.

Supported operating systems

VM Insights supports all operating systems supported by the Dependency agent and either Azure Monitor Agent or Log Analytics agent. For a complete list of operating systems supported by Azure Monitor Agent and Log Analytics agent, see Azure Monitor agent overview.

Dependency Agent supports the same Windows versions that Azure Monitor Agent supports, except Windows Server 2008 SP2 and Azure Stack HCI.For Dependency Agent Linux support, see Dependency Agent Linux support.

Important

If the Ethernet device for your virtual machine has more than nine characters, it won't be recognized by VM Insights and data won't be sent to the InsightsMetrics table. The agent will collect data from other sources.

Linux considerations

Consider the following before you install Dependency agent for VM Insights on a Linux machine:

  • Only default and SMP Linux kernel releases are supported.
  • Nonstandard kernel releases, such as physical address extension (PAE) and Xen, aren't supported for any Linux distribution. For example, a system with the release string of 2.6.16.21-0.8-xen isn't supported.
  • Custom kernels, including recompilations of standard kernels, aren't supported.
  • For Debian distros other than version 9.4, the Map feature isn't supported. The Performance feature is available only from the Azure Monitor menu. It isn't available directly from the left pane of the Azure VM.
  • CentOSPlus kernel is supported.
  • Installing Dependency agent taints the Linux kernel and you might lose support from your Linux distribution until the machine resets.

The Linux kernel must be patched for the Spectre and Meltdown vulnerabilities. For more information, consult with your Linux distribution vendor. Run the following command to check for availability if Spectre/Meltdown has been mitigated:

$ grep . /sys/devices/system/cpu/vulnerabilities/*

Output for this command looks similar to the following and specify whether a machine is vulnerable to either issue. If these files are missing, the machine is unpatched.

/sys/devices/system/cpu/vulnerabilities/meltdown:Mitigation: PTI/sys/devices/system/cpu/vulnerabilities/spectre_v1:Vulnerable/sys/devices/system/cpu/vulnerabilities/spectre_v2:Vulnerable: Minimal generic ASM retpoline

Agents

When you enable VM Insights for a machine, the following agents are installed.

Important

Azure Monitor Agent has several advantages over the legacy Log Analytics agent, which will be deprecated by August 2024. After this date, Microsoft will no longer provide any support for the Log Analytics agent. Migrate to Azure Monitor agent before August 2024 to continue ingesting data.

  • Azure Monitor agent or Log Analytics agent: Collects data from the virtual machine or Virtual Machine Scale Set and delivers it to the Log Analytics workspace.
  • Dependency agent: Collects discovered data about processes running on the virtual machine and external process dependencies, which are used by the Map feature in VM Insights. The Dependency agent relies on the Azure Monitor Agent or Log Analytics agent to deliver its data to Azure Monitor. If you use Azure Monitor Agent, the Dependency agent is required for the Map feature. If you don't need the map feature, you don't need to install the Dependency agent.

Network requirements

  • For Azure Monitor Agent, the machine must have access to the following HTTPS endpoints:

    • global.handler.control.monitor.azure.com
    • <virtual-machine-region-name>.handler.control.monitor.azure.com (example: westus.handler.control.azure.com)
    • <log-analytics-workspace-id>.ods.opinsights.azure.com (example: 12345a01-b1cd-1234-e1f2-1234567g8h99.ods.opinsights.azure.com)(If using private links on the agent, you must also add the data collection endpoints)

    For more information, see Define Azure Monitor Agent network settings.

  • The Dependency agent requires a connection from the virtual machine to the address 169.254.169.254. This address identifies the Azure metadata service endpoint. Ensure that firewall settings allow connections to this endpoint.

VM Insights data collection rule

To enable VM Insights on a machine with Azure Monitor Agent, associate a VM insights data collection rule (DCR) with the agent. VM Insights creates a default data collection rule if one doesn't already exist.

The data collection rule specifies the data to collect and the workspace to use:

OptionDescription
Guest performanceSpecifies whether to collect performance data from the guest operating system. This option is required for all machines. The collection interval for performance data is every 60 seconds.
Processes and dependenciesCollects information about processes running on the virtual machine and dependencies between machines. This information enables the Map feature in VM Insights. This is optional and enables the VM Insights Map feature for the machine.
Log Analytics workspaceWorkspace to store the data. Only workspaces with VM Insights are listed.

Important

VM Insights automatically creates a data collection rule that includes a special data stream required for its operation. Do not modify the VM Insights data collection rule or create your own data collection rule to support VM Insights. To collect additional data, such as Windows and Syslog events, create separate data collection rules and associate them with your machines.

If you associate a data collection rule with the Map feature enabled to a machine on which Dependency Agent isn't installed, the Map view won't be available. To enable the Map view, set enableAMA property = true in the Dependency Agent extension when you install Dependency Agent. We recommend following the procedure described in Enable VM Insights for Azure Monitor Agent.

Enable network isolation using Private Link

By default, Azure Monitor Agent connects to a public endpoint to connect to your Azure Monitor environment. To enable network isolation for VM Insights, associate your VM Insights data collection rule to a data collection endpoint linked to an Azure Monitor Private Link Scope, as described in Enable network isolation for Azure Monitor Agent by using Private Link.

Diagnostic and usage data

Microsoft automatically collects usage and performance data through your use of Azure Monitor. Microsoft uses this data to improve the quality, security, and integrity of the service.

To provide accurate and efficient troubleshooting capabilities, the Map feature includes data about the configuration of your software. The data provides information such as the operating system and version, IP address, DNS name, and workstation name. Microsoft doesn't collect names, addresses, or other contact information.

For more information about data collection and usage, see the Microsoft Online Services Privacy Statement.

Note

For information about viewing or deleting personal data, see Azure Data Subject Requests for the GDPR. For more information about GDPR, see the GDPR section of the Microsoft Trust Center and the GDPR section of the Service Trust portal.

Next steps

To learn how to use the Performance monitoring feature, see View VM Insights Performance. To view discovered application dependencies, see View VM Insights Map.

Enable VM Insights overview - Azure Monitor (2024)

FAQs

How do I enable VM insights in Azure Monitor? ›

Select Enable next to any machine that you want to enable. If a machine is currently not running, you must start it to enable it. On the Insights Onboarding page, select Enable. On the Monitoring configuration page, select Azure Monitor agent and select a data collection rule from the Data collection rule dropdown.

How do I enable VM monitoring in Azure policy? ›

Assign a VM insights policy initiative
  1. Search for and open Policy.
  2. Select Assignments > Assign initiative. The Assign initiative screen appears.
  3. Configure the initiative assignment: ...
  4. Select Review + create to review the initiative assignment details.
6 days ago

What is the difference between Azure insights and Azure Monitor? ›

In summary, Azure Application Insights focuses on monitoring the performance and user behavior of applications, while Azure Monitor provides a broader scope of monitoring for applications, infrastructure, and operating systems.

How do I enable VM insights in PowerShell? ›

To enable VM insights for multiple VMs or virtual machine scale set, use the PowerShell script Install-VMInsights. ps1. The script is available from the Azure PowerShell Gallery. This script iterates through the virtual machines or virtual machine scale sets according to the parameters that you specify.

How do I enable application insights in Azure? ›

Add Application Insights automatically
  1. Select Project > Add Application Insights Telemetry > Application Insights Sdk (local) > Next > Finish > Close.
  2. Open the ApplicationInsights. ...
  3. Before the closing </ApplicationInsights> tag, add a line that contains the connection string for your Application Insights resource.
Jun 24, 2024

How to enable Azure VM? ›

Enable or disable Start VM on Connect

To configure Start VM on Connect using the Azure portal: Sign in to the Azure portal. In the search bar, enter Azure Virtual Desktop and select the matching service entry. Select Host pools, then select the name of the host pool where you want to enable the setting.

How do I enable monitoring in Azure? ›

Select Insights from your virtual machine's menu in the Azure portal. If VM insights isn't enabled, you see a short description of it and an option to enable it. Select Enable to open the Monitoring configuration pane.

How do I enable VM monitoring for each cluster? ›

Procedure
  1. In the vSphere Client, browse to the vSphere HA cluster.
  2. Click the Configure tab.
  3. Select vSphere Availability and click Edit.
  4. Click Failures and Responses and expand VM Monitoring.
  5. Select VM Monitoring and Application Monitoring.
May 31, 2019

How do I monitor my Azure VM usage? ›

To monitor VM guest data, you need to install Azure Monitor Agent on the VM and set up a data collection rule (DCR). The VM Insights feature automatically installs Azure Monitor Agent on your VM and sets up a default data collection rule for quick and easy onboarding.

Which of the following is a benefit of using Azure monitor insights? ›

Visibility: Azure Monitor provides detailed and unified visibility for cloud resources. Companies can monitor their applications, services and infrastructure and gain important insights into the performance of them.

What are the three main functions of Azure monitor? ›

Azure Monitor's core consumption methods include tools to provide insights, visualize, and analyze data. The visualization tools build on the analysis tools and the insights build on top of both the visualization and analysis tools.

What is Azure insights used for? ›

Provides a unified, interactive view of overall performance, failures, capacity, and operational health. Azure Data Explorer Insights provides comprehensive monitoring of your clusters by delivering a unified view of your cluster performance, operations, usage, and failures.

How do I enable VM insights? ›

To enable VM Insights on a machine with Azure Monitor Agent, associate a VM insights data collection rule (DCR) with the agent. VM Insights creates a default data collection rule if one doesn't already exist. Specifies whether to collect performance data from the guest operating system.

How do I disable VM insights? ›

In your list of Log Analytics workspaces, select the workspace you chose when you enabled VM insights. On the left, select Legacy solutions. In the list of solutions, select VMInsights(workspace name). On the Overview page for the solution, select Delete.

How do I get Azure VM status in PowerShell? ›

Retrieving the status of a VM is rather straightforward. To retrieve the state of a specific virtual machine, use the Get-AzureRmVM command, taking care to specify valid names for the VM and the resource group. The command in the preceding example retrieves the current status of the myVM virtual machine.

How do I enable VM resource metering? ›

Description. The Enable-VMResourceMetering cmdlet starts collecting resource utilization data for a virtual machine or resource pool. You can use the Measure-VM or Measure-VMResourcePool cmdlet to obtain this data.

How do I Monitor Azure VM availability? ›

Once on the Azure portal, navigate to the VM overview blade. The new metric is displayed as VM Availability (Preview), along with other platform metrics under the Monitoring tab. To navigate to the metrics explorer for further analysis, select the VM availability metric chart on the overview page.

Top Articles
Rocket Money
Can a single woman safely retire overseas on $1200 a month?
Promotional Code For Spades Royale
Walgreens Alma School And Dynamite
T&G Pallet Liquidation
New Day Usa Blonde Spokeswoman 2022
Nichole Monskey
Elle Daily Horoscope Virgo
What is a basic financial statement?
Osrs Blessed Axe
Thotsbook Com
Ivegore Machete Mutolation
Darksteel Plate Deepwoken
Gon Deer Forum
Panorama Charter Portal
2016 Hyundai Sonata Refrigerant Capacity
Troy Bilt Mower Carburetor Diagram
Dark Chocolate Cherry Vegan Cinnamon Rolls
White Pages Corpus Christi
St. Petersburg, FL - Bombay. Meet Malia a Pet for Adoption - AdoptaPet.com
Walmart Car Department Phone Number
Juicy Deal D-Art
Lakers Game Summary
Katie Sigmond Hot Pics
Craigslist Lewes Delaware
If you have a Keurig, then try these hot cocoa options
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Summoners War Update Notes
101 Lewman Way Jeffersonville In
DIY Building Plans for a Picnic Table
Armor Crushing Weapon Crossword Clue
Best New England Boarding Schools
Weekly Math Review Q4 3
Ark Unlock All Skins Command
Linabelfiore Of
Wildfangs Springfield
Shih Tzu dogs for sale in Ireland
Dying Light Nexus
Labyrinth enchantment | PoE Wiki
Cheetah Pitbull For Sale
Sabrina Scharf Net Worth
Second Chance Apartments, 2nd Chance Apartments Locators for Bad Credit
11301 Lakeline Blvd Parkline Plaza Ctr Ste 150
Mid America Clinical Labs Appointments
Top 40 Minecraft mods to enhance your gaming experience
My Eschedule Greatpeople Me
Beds From Rent-A-Center
Ouhsc Qualtrics
Lebron James Name Soundalikes
Bellelement.com Review: Real Store or A Scam? Read This
Bluebird Valuation Appraiser Login
Laurel Hubbard’s Olympic dream dies under the world’s gaze
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 5531

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.