AzureSqlMaintenancePlan.psm1
function Get-SqlElasticPoolDatabase { param ( [Parameter(Mandatory = $True)] [string]$ResourceGroupName, [Parameter(Mandatory = $True)] [string]$ServerName, [Parameter(Mandatory = $True)] [string]$ElasticPoolName ) # Get-AzSqlElasticPoolDatabase doesn't enumerate output # https://github.com/Azure/azure-powershell/issues/12417 # Connect-AzAccount session persist when closing PowerShell, even over multiple days # https://github.com/Azure/azure-powershell/issues/10599 $db = Get-AzSqlElasticPoolDatabase -ResourceGroupName $ResourceGroupName -ServerName $ServerName -ElasticPoolName $ElasticPoolName $db | Select-Object ElasticPoolName, DatabaseName | Sort-Object ElasticPoolName, DatabaseName } |