Share via

Can Azure Policy parse extension settings to evaluate existence condition & compliance?

Anonymous
2024-08-01T16:32:31.4+00:00

We want to build a policy with Deploy If Not Exists (effect) to deploy/update an extension with appropriate settings. We have the below existence condition with the last condition about the presence of a certain setting in extension settings. Is this valid? When assigning the policy to a scope, for example for a VM without the extension, the policy deploys the extension but still evaluates to be non-compliant. Thus, is to reiterate, is policy support evaluation limited to few subfields in extensions documented here ? https://github.com/maciejporebski/azure-policy-aliases/blob/master/aliases/Microsoft.Compute/virtualMachines-extensions.md


Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 29,586 Reputation points MVP Volunteer Moderator
    2024-08-02T06:32:29.77+00:00

    Hi,

    It is not clear exactly what you want to achieve. May be will be good to elaborate and explain in details. Overall the link contains all the aliases for Azure VM extensions you can use in policy conditions. If certain property is not available as alias it cannot be used.

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

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.