How to create a custom policy that shows who create the resources on Azure

Cinthia Rodriguez 30 Reputation points
2024-10-11T20:27:31.9466667+00:00

Hello Everyone,

I would like to get your help regarding to know what could be a json structure to create a Azure policy that will allow me to identify who create the Azure resources on a subscription.

Thank you and help will be very helpfull.

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

Accepted answer
  1. Marcin Policht 24,630 Reputation points MVP
    2024-10-11T20:57:07.51+00:00

    You don't need a policy for this. This information is already recorded in the Activity Log. More at https://zcusa.951200.xyz/en-us/azure/azure-monitor/essentials/activity-log-insights


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Cinthia Rodriguez 30 Reputation points
    2024-10-12T02:19:26.33+00:00

    Hi , yes I am aware, but I still need a policy as that as customer require to have a Tag that shows , who create the resources on their subscription

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Cinthia Rodriguez 30 Reputation points
    2024-10-15T17:22:40.54+00:00

    Hi @rootjohn how can I use the Azure Activity Logs with a policy that will create a tag as "createdby",there is a policy by default that allow to create tag for resources,as explained here https://zcusa.951200.xyz/en-us/azure/azure-resource-manager/management/tag-policies but, I need help to know how to configure that policy for example with the Activity logs


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.