An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
Hi @Jorell Macapagal ,
Welcome to Microsoft Q&A! Thanks for posting the question.
There are some differences in functions() as available in ARM templates and Policy definition. The requestContext().apiVersion function is available to use in a policy rule, but differs from use in an Azure Resource Manager template (ARM template). Similarly, all Resource Manager template functions are available to use within a policy rule, except a few functions and user-defined functions.
Please refer to this link for more details.
As a workaround, I would request using the Portal to create Policy definition when these functions are to be used. Please let me know if you have any questions.
---
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.