Microsoft Defender for Storage does not support malware scanning for files stored in Azure Files shares. Both on-upload and on-demand malware scanning capabilities are currently limited to Azure Blob Storage and do not extend to Azure Files.
Regarding hash reputation analysis, this feature is also not applicable to Azure Files shares accessed via the SMB protocol. Therefore, Defender for Storage does not perform periodic or real-time malware scans on files within Azure Files shares.
To protect data stored in Azure Files shares, consider implementing alternative security measures, such as using antivirus solutions on the client machines accessing the shares or integrating third-party security tools that support scanning of SMB file shares.https://www.reddit.com/r/AZURE/comments/1ge0af6/defender_for_storage_malware_scanning_on_file/
https://learn.microsoft.com/en-us/azure/defender-for-cloud/introduction-malware-scanning