得到我的Azure订阅(PowerShell的preferably)中的所有资源的列表 [英] Get a list of all Resources in my Azure Subscription (Powershell Preferably)

查看:76
本文介绍了得到我的Azure订阅(PowerShell的preferably)中的所有资源的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Azure订阅,我想写一个PowerShell脚本来自动获得所有我目前在我订阅的资源(虚拟机,存储帐户,数据库等)的列表。有没有办法做到这一点使用Azure管理REST API或在Azure的cmdlet?

I have an azure subscription and I'm trying to write a powershell script to automatically get a list of all the resources (VMs, Storage Accounts, Databases, etc) that I currently have in my subscription. Is there a way to do this using the azure management REST API or the Azure Cmdlets?

推荐答案

好,
您可以更新您的AzurePowershell的版本,并执行此命令。

well, You may update the version of your AzurePowershell and execute this command.

Get-AzureResource

在输出中,你可以检查的ResourceType。
它有大约资源creatd对蔚蓝的类型的信息。

In the output, You may check for "ResourceType". It has the information about the type of resource creatd on azure.

这篇关于得到我的Azure订阅(PowerShell的preferably)中的所有资源的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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