How do I get createdTime for all resources using Get-AzResource? #19196
-
With Azure CLI, I can do this: az rest --method GET --url "https://management.azure.com/subscriptions/<subid>/resources" --url-parameters "@params.txt" where params.txt has this:
However, that just gives back a single object and working with it in powershell is not particularly easy. To reframe the discussion - my goal is to write a script that identifies Azure resources created in a subscription that were created in the last 7 days and more than 12 hours old. For each resource I want to know who created it and when. Unfortunately it seems that metadata availability varies wildly based on the resource type. Is there some known way to achieve this goal? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
The equivalent cmdlet of
|
Beta Was this translation helpful? Give feedback.
-
answer from Keyvault team
|
Beta Was this translation helpful? Give feedback.
-
@dingmeng-xue is there any way to get the id of the user who created a resource? |
Beta Was this translation helpful? Give feedback.
answer from Keyvault team