Skip to content

Get-ElasticPoolReport

Azure: Gets a report of Elastic Pools

param(
	[Parameter(Mandatory = $true)]
	[string]$ResourceGroupName,

	[Parameter(Mandatory = $true)]
	[string]$ServerName
)

try {
	Import-Module Az.Sql -ErrorAction Stop
	$pools = Get-AzSqlElasticPool -ResourceGroupName $ResourceGroupName -ServerName $ServerName -ErrorAction Stop | Select-Object ElasticPoolName, Edition, Dtu, State
	Write-Output $pools
} catch {
	Write-Error $_
	exit 1
}

The name of the resource group.

The name of the Azure SQL Server.

An interactive directory of PowerShell scripts.