Azure Powershell对ARM资源的基本操作

本分主要介绍Windows Azure Powershell对ARM资源的基本操作

1.登陆ARM模式,命令:Login-AzureRmAccount -EnvironmentName AzureChinaCloud

2.获取当前账号下的订阅信息,命令:Get-AzureRmSubscription

3.设置指定的订阅为即将操作的订阅,命令:Select-AzureRmSubscription -SubscriptionId "******"

4.获取虚拟机的信息,命令:Get-AzureRmVM

5.获取存储账号的信息,命令:Get-AzureRmStorageAccount

6.获取虚拟网络的信息,命令:Get-AzureRmVirtualNetwork

7.查找一个陌生的操作命令,命令:get-command *azurerm*

8.查找一个具体命令的帮助手册,命令:get-help Update-AzureRmDisk -Full

9.查看当前的操作订阅,命令:Get-AzureRmContext

I hear and I forget. I see and I remeber. I do and I understand!
原文地址:https://www.cnblogs.com/stonehe/p/7513796.html