Skip to content

Get-VMSizeReport

Azure: Gets a report 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, MaxDataDiskCount
	Write-Output $sizes
} catch {
	Write-Error $_
	exit 1
}

The Azure region to check.

An interactive directory of PowerShell scripts.