Deploy - Configure Log Analytics extension to be enabled on Windows virtual machines

Ankita Rani Patro 176 Reputation points
2022-05-03T16:10:37.89+00:00

Hi Team, I need help here . I am working on a policy to deploy Deploy - Configure Log Analytics extension to be enabled on Windows virtual machines But I see it not able to find/validate resources. The other policy works fine. I have created a managed identity and assign user access admin role too but still it does not work. ![198480-image.png][1] [1]: /api/attachments/198480-image.png?platform=QnA

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
829 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 22,101 Reputation points MVP
    2022-05-04T12:11:15.233+00:00

    Hi,
    This policy is applicable for specific Azure marketplace images that are used when the Azure VMs are deployed. It is possible that your VMs are deployed from custom images thus the policy does not apply to any of those VMs. If that is case consider providing value for the parameter listOfImageIdToInclude of that policy with the resource IDs of those custom images so the policy can work on Azure VMs with those images as well.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments