Azure Monitoring Agent + VM Insights

CS10NET 86 Reputation points
2022-09-30T20:51:41.473+00:00

Hello,
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.
3,037 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,585 questions
{count} votes

Accepted answer
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee
    2022-09-30T23:55:59.083+00:00

    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": [
    "2008-R2-SP1",
    "2008-R2-SP1-smalldisk",
    "2012-Datacenter",
    "2012-Datacenter-smalldisk",
    "2012-R2-Datacenter",
    "2012-R2-Datacenter-smalldisk",
    "2016-Datacenter",
    "2016-Datacenter-smalldisk",
    "2016-Datacenter-with-Containers",
    "2016-Datacenter-with-RDSH",
    "2016-datacenter-gensecond",
    "2019-Datacenter",
    "2019-Datacenter-smalldisk",
    "2019-Datacenter-with-Containers",
    "2019-Datacenter-with-Containers-smalldisk",
    "2019-Datacenter-zhcn",
    "2019-datacenter-gensecond"
    ]

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

    0 comments No comments

0 additional answers

Sort by: Most helpful