What are the functions which can be used inside Azure Policy Definition?

V, Gukan 1 Reputation point
2023-03-17T14:17:46.9233333+00:00

I need the list of functions which can be used for Policies

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

2 answers

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,996 Reputation points Moderator
    2023-03-20T06:07:31.7366667+00:00

    @V, Gukan All Resource Manager template functions are available to use within a policy rule, except the following functions and user-defined functions:

    • copyIndex()
    • dateTimeAdd()
    • deployment()
    • environment()
    • extensionResourceId()
    • listAccountSas()
    • listKeys()
    • listSecrets()
    • list*
    • managementGroup()
    • newGuid()
    • pickZones()
    • providers()
    • reference()
    • resourceId()
    • subscriptionResourceId()
    • tenantResourceId()
    • tenant()
    • utcNow(format)
    • variables()

    For more information refer this document.

    1 person found this answer helpful.
    0 comments No comments

  2. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-03-17T22:01:39.8733333+00:00

    Hello,

    Here is a list of Azure Policy built-in policy definitions (functionality):

    https://learn.microsoft.com/en-us/azure/governance/policy/samples/built-in-policies


    If this is helpful please accept answer.

    0 comments No comments

Your answer

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