Hello everyone,
I understand that Azure Activity Log already records who created a resource, and that when resources are provisioned via IaC, it is possible to automatically include a createdBy tag during deployment.
However, I would like to know whether there is any way to achieve this automatically through Azure Policy for resources created directly from the Azure Portal or other web-based platform actions.
My goal is to ensure that whenever a resource is created manually through the platform, a tag such as createdBy is automatically added and populated with the name or identity of the person who created it.
I’m aware that Azure Policy can add or modify tags, but it does not seem to have access to the identity of the user who initiated the resource creation.
Additionally, I’ve noticed that other cloud providers already offer this type of capability natively, automatically associating resource creation with user identity metadata.
So my question is:
Is it possible to use Azure Policy alone to automatically create a createdBy tag and populate it with the identity of the user who created the resource at creation time?
If not, what would be the recommended approach to achieve this behavior for resources created outside IaC, while still keeping it automated and governance-friendly?
Thank you.