Share via


Finding VM creation Time/Date

Question

Wednesday, August 16, 2017 1:13 PM

Can anybody suggest how can I get the VM creation date and time on Azure?

Regards,
Hemanth L

Hemanth L

All replies (7)

Wednesday, August 16, 2017 1:32 PM | 1 vote

To check the creation date and time of an Azure VM you can use the Activity Log.

Navigate to Monitor - Activity Log and set the Event category to Administrative with Event severity to Informational. The operation name will be Write Virtual Machines which will show the timestamp of the creation.

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.


Wednesday, August 16, 2017 1:53 PM

Is there no PowerShell command or a CLI command to get VM creation date time for a large number of VM's.

Cos viewing activity log for individual VM's may be a tedious step!

Hemanth L


Wednesday, August 16, 2017 3:42 PM

Unable to find any property through Get-Azure-RmVm for creation date. You can use Get-Azure-RmDisk where you can get creation date of disk and attached vm name. Considering your disk and vms were created at same time

Rest API can give you the creation detail of vms

https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualmachines?api-version={apiVersion}

Also, Please check https://resources.azure.com and instanceView under virtualMachines . You can make a dynamic query to get details.

Thanks


Wednesday, August 16, 2017 4:41 PM

The below mentioned command may help you in this scenario

Get-AzureRmResource -ResourceGroupName <RG name> -ResourceName <Resource Name> -ResourceType <Resource Type>

Get-AzureVM <cloud service name> <VM name> | Get-AzureOSDisk | select medialink

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

 


Wednesday, August 16, 2017 6:20 PM

Sumanth,

I have tried that as well.. that gives more details of VM.... But, doesn't provide what I'm looking for.

Hemanth L


Thursday, August 17, 2017 12:44 PM

There is no PowerShell command for specify VM creation date for now.  You may find the creation date of disk which is same as VM creation date.

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

 


Thursday, December 12, 2019 2:54 PM

Thank you, SumanthMarigowda-MSFT!