Skip to content

Get-VMSizeSummary

Azure: Gets a summary of VM sizes

param(
	[Parameter(Mandatory = $true)]
	[string]$Location
)

try {
	Import-Module Az.Compute -ErrorAction Stop
	$sizes = Get-AzVMSize -Location $Location -ErrorAction Stop | Select-Object Name, NumberOfCores, MemoryInMB
	Write-Output $sizes
} catch {
	Write-Error $_
	exit 1
}

The Azure region.

An interactive directory of PowerShell scripts.