'Azure DevOps logging commands in SQL script deployment

I am deploying SQL Scripts using SQL Server database deploy task and am trying to use ADO logging commands in the SQL script. I thought PRINT would do it, but not getting the desired result. What's the best way of writing to the release log from a SQL script?

enter image description here

SQL Server database deploy task

Result



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source