creating policy for VMs

Varma 1,170 Reputation points
2024-02-21T11:26:51.41+00:00

I want to apply perodic assement enabled using azure policy which option I should choose in resource type to select virtual machines. microsfot.classic.compute virtual machines OR microsoft.compute.virtual machine? which one? 2. and after applying policy how long it will take to apply policy. 3. I am getting following error after trying to create a policy what should be the exact for this Creating policy assignment 'Configure periodic checking for missing system updates on azure virtual machines' in 'XXXXXXXXX' failed. The client 'usermail' with object id '1XXXX'does not have authorization to perform action 'Microsoft.Authorization/policyAssignments/write' over scope '/subscriptions/XXXX/providers/Microsoft.Authorization/policyAssignments/XXXX1' or the scope is invalid. If access was recently granted, please refresh your credentials.

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

1 answer

Sort by: Most helpful
  1. Luis Arias 5,046 Reputation points
    2024-02-21T17:30:10.63+00:00

    Hi Varma, Base on your requirement you could update to use:

    Approve the answer if this help you to solve your question .

    Regards,

    Luis

    0 comments No comments