Azure SQL Database Elastic Pools - TSQL to get current Elastic Pool
What about this?
-- TSQL to find Databases, corresponding elastic pool names and DB edition
 
SELECT
       @@SERVERNAME as [ServerName],
       dso.elastic_pool_name,
       d.name as DatabaseName,
       dso.edition
FROM
       sys.databases d inner join sys.database_service_objectives dso on d.database_id = dso.database_id
WHERE d.Name &lt;&gt; 'master'
ORDER BY
       d.name, dso.elastic_pool_name