question

RaoufSaad-2912 avatar image
0 Votes"
RaoufSaad-2912 asked SwathiDhanwada-MSFT commented

Find the created by and created date for an azure object

After a lot of research, it does not appear that we can determine who and when an azure object was created. All of the answers given so far have pointed me to look at the Azure Logs. However, the Azure logs only go back 90 days, so that is not helpful. Need to be able to determine the created by and created date for an Azure object, and the log does not provide that information, since the logs only go back 90 days.

Thank you

azure-monitor
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.

vaibhavpandey avatar image
1 Vote"
vaibhavpandey answered BlogStuff-9728 published

Hi Saad,

I assume you mean Azure resource when you say Azure object. Can you check your Resource Group --> Deplpoyment and review them. They should have all the deployments and dates when they were created. Also have you tried using Azure Cli to query your resources? CLI Commands should you give you entire dump of resource as a JSON. Some of the commands may not give you details e.g. VM. But you can query creation date for the associated disc to get a indicative date.

Hope this helps.

· 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.

Thanks this worked for me for a resource deployed 2 years before

0 Votes 0 ·
SwathiDhanwada-MSFT avatar image
1 Vote"
SwathiDhanwada-MSFT answered SwathiDhanwada-MSFT commented

@RaoufSaad-2912 Here is a blog where relevant information to your question is documented. Kindly go through the article. Also, there are few feedbacks were provided by the community to Microsoft for implementing this feature. I also would recommend you to share your feedback or suggestions directly with the responsible Azure feature team and clicking the vote button of your suggestion to raise visibility and priority on it.

Here are feedback suggestions made by the community.

Also, as per this feedback, kindly note that the creation of metadata for new resources and modification metadata for existing resources is currently ongoing, but work is required by each resource provider. If you have certain resource types that you wish to be prioritized, please create requests on the feedback pages for respective services.

Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


· 2
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.

@SwathiDhanwada-MSFT These links are no longer valid. Could you please update your answer with current links to this information?

0 Votes 0 ·

@OlegDeribas UserVoice has been deprecated for Azure. Azure is working on a new Self-Serve option for customers to share and vote on product feedback. When available, you will be able to go to https://feedback.azure.com/ and share/up-vote product feature ideas. The above feedback is being tracked and is shared internally with Product Group team.

0 Votes 0 ·
DavidLira-9602 avatar image
0 Votes"
DavidLira-9602 answered DavidLira-9602 edited

@OlegDeribas
So the past 2 days I've been looking for the creation data of an AKS cluster.
I knew that the VM creation date could be determined by looking at the disk associated with the VM,
therefore I thought about looking for the disks associated with the AKS cluster to determine the creation date.

No luck. I could not find any disk resources or virtual machines resources associated with the cluster when using the Python SDK or REST API.

Eventually I found these docs that gave me the clue I needed:
https://docs.microsoft.com/en-us/rest/api/resources/resources/list
https://docs.microsoft.com/en-us/rest/api/resources/resources/list-by-resource-group

In there you will see the parameter called $expand which can be given the property of createdTime.
Adding this to the GET request will give you a list of resources with each having a createdTime property.
Thus I was able to determine when an AKS cluster was created.

Now, the next thing I am on the hunt for is determining who created a specific resource.


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.