Stored procedures xp_dirtree, xp_fileexist, and xp_regread are not available on Azure SQL Server and getting server exceptions

I’m running my DNN v9.8 site on Azure Server and getting server exceptions for a few stored procedures that are not available.
The stored procedures xp_dirtree, xp_fileexist, and xp_regread are extended stored procedures that are not supported in Azure SQL Database.
Is there any fix by DNN in upper versions then DNN v9.8 or any patch? Please help.

Mostly these exceptions happen when I run Security Analyzer File scanning for recently modified files.
getting the following exception

Could not find stored procedure ‘sys.xp_fileexist’.

Read more here: Source link