question

Amjadnagori-3172 avatar image
0 Votes"
Amjadnagori-3172 asked SwathiDhanwada-MSFT commented

Policy to tag Azure Resources with Creator email Id

Is there any way to assign Azure policy on subscription level to Add a tag to resources with email id of creator (who creates the resource whether its from portal, ARM template or PowerShell.)

azure-policy
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Amjadnagori-3172 avatar image
1 Vote"
Amjadnagori-3172 answered SwathiDhanwada-MSFT commented

For people who are looking for the same solution-

I was able to fulfil this requirement by following below document-

https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/tagging-azure-resources-with-a-creator/ba-p/1479819#:~:text=Update%3A%20Objects%20created%20by%20a,role%20in%20Azure%20Active%20Directory.

I got some issue as my account was Contributor and script in the document creating Identity for Azure Function with assigning Tag Creator and Reader role to the same.
So make sure your account have Owner rights on subscription, if not then once script completed successfully then ask Owner to add these 2 roles in Function's identity section.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Amjadnagori-3172 Glad to see your issue is solved. Thanks for sharing your valuable insights for benefit of the community.

1 Vote 1 ·