计算VM的数量 [英] Count number of VMs

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

问题描述

您好,


我需要获取一些与分配的虚拟机相关的Azure使用情况的统计信息。我可以使用az cli comand计算它们的数量,它们是什么类型等但是......有没有更快的方法来获得这些统计数据?

解决方案

 



以下是我编写的PowerShell脚本,可以帮助您。 


 


rmvms = Get-AzVM


< blockquote> WarningPreference ='SilentlyContinue'

foreach(


Hello,

I need to get some statistics about our Azure usage related to allocated VMs. I can count number of them, what type are they etc using az cli comand but ... is there any quicker way to get those statistics across several subscriptions ?

解决方案

Hi, 

Here is the PowerShell script that I wrote which will help you. 


rmvms=Get-AzVM


WarningPreference = 'SilentlyContinue' foreach (


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

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