-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Monitor Agent Policies do not include server 2022 #876
Comments
Hi @mdowst, thank you for this feedback-- we'll be sure to pass it along to the Monitoring team to see if it is possible to add 2022 servers to the list of skus in the built-in policy definitions you've mentioned. To ensure you are unblocked, you can duplicate these built-in policy definitions as custom policy definitions and slightly modify the definition by adding any additional skus you're interested in being evaluated. Adding a link to creating a custom policy assignment just for reference. |
The new 2019 SKUs are now missing, like "2019-Datacenter-gensecond". |
The same applies to the initiative "Enable Azure Monitor for VMs". |
Any update here? Do we really have to create a custom policy for this? |
Details of the scenario you tried and the problem that is occurring
I created an Azure Policy Assignment for the initiative Configure Windows machines to run Azure Monitor Agent and associate them to a Data Collection Rule and it does not recognize any Windows Server 2022 servers. I ran the Start-AzPolicyComplianceScan cmdlet and it completed successfully, but none of the 2022 server appear as resources.
When I checked the policy definition for the built-in policy Configure Windows virtual machines to run Azure Monitor Agent I saw that the filter for Microsoft.Compute/imageSKU only goes to Server 2019. Since it does not recognize the 2022 servers the agent is not being installed and they are not being added to the data collection rule. The VMs are using the SKU 2022-datacenter-azure-edition.
Suggested solution to the issue
Add the Server 2022 skus to the AzureMonitor_Agent_Windows_VM_Deploy and AzureMonitor_Agent_Windows_VM_Audit built-in policies.
The text was updated successfully, but these errors were encountered: