VM创建日期 [英] VM creation date

查看:174
本文介绍了VM创建日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


任何人都可以帮忙了解如何获得所有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 MediaLink

Also, check this blog out for exploring other alternatives for the same.

Hope this helps!




这篇关于VM创建日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆