SOLVED: Get the Service Tier for an Azure SQL Managed Instance using T-SQL query

The Service Tier is displayed on the General tab of the Server Properties of an Azure SQL Managed Instance.


This property doesn't seem to be exposed by SMO however the SQL Server Management Studio SSMS is actually running the following:

https://learn.microsoft.com/sql/relational-databases/system-catalog-views/sys-server-resource-stats-azure-sql-database


SELECT TOP 1 

    [sku] AS [Service Tier]

FROM master.sys.server_resource_stats

ORDER BY [start_time] DESC




Comments

Popular posts from this blog

SOLVED: Exchange Online Management PowerShell Connect-ExchangeOnline bug "A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles"

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".