如何使用从AZ Powershell检索VM信息 [英] How to use retrieve VM info from AZ Powershell

查看:114
本文介绍了如何使用从AZ Powershell检索VM信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我正在使用Az Powershell连接到Az Portal。我们的一些Azure虚拟服务器具有Powermanagment计划(即它们每天仅在特定时段启动)。在门户网站上,这在VM上设置为标签,如下所示:

I am using Az Powershell to connect to the Az Portal. Some of our Azure Virtual Servers have a Powermanagment Plan (i.e. they are only powered on for certain hours each day). On the Portal this is set as a Tag on the VM as below:

在Az Powershell中是否有Get命令来检索它?

Is there a Get command in Az Powershell to retrieve this?

谢谢,

Zoe

推荐答案

它应该是:

  Get-AzureVM -ServiceName" ContosoService01" -Name" VirtualMachine02" |选择标签


这篇关于如何使用从AZ Powershell检索VM信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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