Is there any way to do this efficiently?
Por enquanto, não há nenhum comando do Azure PowerShell para listar o tamanho da VM do Azure e sua família VCPU.
Como sabemos, podemos usar este comando Get-AzureRmVMUsage
para obter o limite:
PS C:\Users\Jason> Get-AzureRmVMUsage -Location eastus
Name Current Value Limit Unit
---- ------------- ----- ----
Availability Sets 0 2000 Count
Total Regional vCPUs 0 20 Count
Virtual Machines 0 10000 Count
Virtual Machine Scale Sets 0 2000 Count
Basic A Family vCPUs 0 20 Count
Standard A0-A7 Family vCPUs 0 20 Count
Standard A8-A11 Family vCPUs 0 20 Count
Standard D Family vCPUs 0 20 Count
Standard Dv2 Family vCPUs 0 20 Count
Standard G Family vCPUs 0 20 Count
Standard DS Family vCPUs 0 20 Count
Standard DSv2 Family vCPUs 0 20 Count
Standard GS Family vCPUs 0 20 Count
Standard F Family vCPUs 0 20 Count
Standard FS Family vCPUs 0 20 Count
Standard NV Family vCPUs 0 18 Count
Standard NC Family vCPUs 0 18 Count
Standard H Family vCPUs 0 8 Count
Standard Av2 Family vCPUs 0 20 Count
Standard LS Family vCPUs 0 20 Count
Standard Dv2 Promo Family vCPUs 0 20 Count
Standard DSv2 Promo Family vCPUs 0 20 Count
Standard MS Family vCPUs 0 0 Count
Standard Dv3 Family vCPUs 0 20 Count
Standard DSv3 Family vCPUs 0 20 Count
Standard Ev3 Family vCPUs 0 20 Count
Standard ESv3 Family vCPUs 0 20 Count
Standard B Family vCPUs 0 10 Count
Standard FSv2 Family vCPUs 0 20 Count
Standard ND Family vCPUs 0 0 Count
Standard NCv2 Family vCPUs 0 0 Count
Standard NCv3 Family vCPUs 0 0 Count
Standard LSv2 Family vCPUs 0 0 Count
Standard Storage Managed Disks 0 10000 Count
Premium Storage Managed Disks 0 10000 Count
Podemos usar este comando Get-AzureRmVMSize
para obter os detalhes sobre o tamanho da VM do Azure:
PodemosusaronomedotamanhodaVMdoAzureparaencontrarafamíliadetamanhos.
Nota:
SeumaumentodecotafornecessárioparacomprarumRIdeassinaturaúnica,vocêpoderá