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.