Skip to content
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

Open
mdowst opened this issue Dec 13, 2021 · 4 comments
Open

Azure Monitor Agent Policies do not include server 2022 #876

mdowst opened this issue Dec 13, 2021 · 4 comments

Comments

@mdowst
Copy link

mdowst commented Dec 13, 2021

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.

@nehakulkarni123
Copy link
Collaborator

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.

@Springstone
Copy link
Member

Springstone commented Feb 25, 2022

The new 2019 SKUs are now missing, like "2019-Datacenter-gensecond".
Looks like the 2022 servers are now included.

@NikolaiKleppe
Copy link

The same applies to the initiative "Enable Azure Monitor for VMs".
It's missing "-gensecond" Windows SKUs

@chris5287
Copy link

Any update here? Do we really have to create a custom policy for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants