Querying CLR enabled on/off on Azure SQL and turning it off

Nguyen, Hoa 381 Reputation points
2024-09-03T21:14:15.54+00:00

We use MSFT Defender for cloud and it reported that we have a vulnerability of having CLR Enabled turned on.

We are trying to turn it off but the sp_reconfigure does not work on Azure SQL so we are at a loss.

Q1: If the query returns Value 1, Value_in_use 1, does it mean CLR Enabled is on?
Q2: How to turn CLR Enabled off on Azure SQL?

Thank you very much for the help in advance

Azure SQL Database
{count} votes

Accepted answer
  1. Erland Sommarskog 121.9K Reputation points MVP Volunteer Moderator
    2024-09-03T21:44:19.63+00:00

    My Goodness! One hand does not know what the other one does.

    This is a very false alarm. The CLR is not available in Azure SQL Database. Or to be precise, the ability to create user-written CLR modules is not available. There is some built-in functionality in SQL Server that uses the CLR, but the flag does not relate to those.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.