Using Azure AD cloud-only identities with Azure File services can be challenging since Azure Files typically requires integration with AD DS or Microsoft Entra Domain Services (Entra DS) for identity-based authentication.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you