赞
踩
获取当前订阅下的虚拟机的基本信息:
Get-AzureRmVM | select Name, ResourceGroupName, Location,@{Name="VmSize"; Expression={$_.HardwareProfile.VmSize}},@{Name="Sku"; Expression={$_.StorageProfile.ImageReference.Sku}},@{Name="OsType"; Expression={$_.StorageProfile.OsDisk.OsType}} |Format-Table
列出当前订阅下所有的ResourceGroup:
Get-AzureRmResourceGroup | select ResourceGroupName,Location, ProvisioningState
列出某个ResourceGroup中的资源(高亮部分自行修改):
Get-AzureRmResource | where {$_.ResourceGroupName.Equals("<Resource Group Name>")}| select Name, Location, ResourceType, Kind, Sku | ft
查看当前订阅下存储账号的情况:
Get-AzureRmStorageAccount | select StorageAccountName,ResourceGroupName, Location, Kind, @{Name="Type"; Expression={$_.Sku.Tier}} | ft
查看虚拟机可用的大小:
Get-AzureRmVMSize -Location "China East" | selectName, NumberOfCores, MemoryInMB
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。