Azure Monitoring Agent + VM Insights

CS10NET 86 Reputation points

I'm trying to deploy the Azure Monitoring Agent (to Win2019/2022) through Azure Policy and configure it with VMInsights. I know a lot of the Azure Policy built-in initiative/definitions are in preview but I'm getting very mixed results. I have the best results when I assign this initiative:

[Preview]: Enable Azure Monitor for VMs with Azure Monitoring Agent(AMA)

But the dependency agent does not install to 2022 and I also am not seeing any data appear when I go to performance.

I'm ultimately just trying to set policies in place so if anyone builds a VM, we know that the right agents will get installed.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,867 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,287 questions
{count} votes

Accepted answer
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee

    Hi there,

    This is an expected behavior for 2022, because this particular definition

    [Preview]: Deploy Dependency agent to be enabled on Windows virtual machines with Azure Monitoring Agent settings

    is configured to install the dependency agent to the following OSes:
    "field": "Microsoft.Compute/imageSKU",
    "in": [

    Customize the definition - add your 2022 SKU, and use it as a custom.

    0 comments No comments

0 additional answers

Sort by: Most helpful