Thank you for taking the time to vote for this item.
Could you please email us some more information on this scenario.
We would appreciate your feedback.
An error occurred while saving the commentNoel Bundick commented
reference() works great for items that have an identity property. Unfortunately, AFAIK, there's nothing that represents the identity of the current user
What I'd like to see is an identity property added to deployment() that contains the tenantId/objectId (and ideally username/appId) of the user or Service Principal that created the ARM deployment.
This would not only solve for "I want to add myself to the Key Vault access policies", but also help enable other much-requested scenarios - like tagging resources with the user who created them
Thank you for taking the time to vote on this request. Work on this has commenced. We will email you once it is completed.
If you are interested in participating in the preview please email back.