VM创建日期 [英] VM creation date
问题描述
您好,
任何人都可以帮忙了解如何获得所有azure Vm的创建时间吗?
我知道有办法从活动日志中获取此信息,但当我们需要获得超过3个月的VM年龄时,这还不够。
Hello Fantaka ,
到目前为止,在Powershell中没有命令直接获取VM创建日期。但是,考虑到您的磁盘和VM是同时创建的,您可以使用以下Azure Powershell命令来检索与您的虚拟机关联的
磁盘的创建时间:
< pre class ="prettyprint"style =""> Get-AzureVM -ServiceName myubuntu | Get-AzureOSDisk |选择MediaLink另外,选中
此博客用于探索相同的其他替代方案。
希望这会有所帮助!
Hello,
Can anyone help on how to get all azure Vm's creation time ?
i know there is a way to get this information from the activity log , baut this is not enough when we need to get the age of a VM older than 3 month .
Hello Fantaka,
There is no command in Powershell as of now to get the VM creation date directly. However, considering that your disk and VMs were created at the same time, you could use the following Azure Powershell Command to retrieve the creation time of the disk associated with your Virtual machine:
Get-AzureVM -ServiceName myubuntu | Get-AzureOSDisk | select MediaLinkAlso, check this blog out for exploring other alternatives for the same.
Hope this helps!
这篇关于VM创建日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!