With the Common Language Runtime (CLR) hosted in Microsoft SQL Server (aka CLR integration), you can author stored procedures, triggers, user-defined functions, user-defined types, and user-defined aggregates in managed code.

The CLR is also available in Azure SQL Database Managed Instance.

In this video, Anna Hoffman and Colin Murphy go over what CLR is, how to set it up in Azure SQL Database Managed Instance, and simple example of Regular Expressions in Azure SQL Database Managed Instance.