Hello Gerald o,
Greetings! Welcome to Microsoft Q&A Platform.
The issue you are facing could be related to application accesses the Azure File Share compared to Windows File Explorer. The application might not be able to authenticate against the Azure File Share using the same credentials that given to the Windows File Explorer. Make sure the application is using the correct credentials to access the Azure File Share. If the application runs under a different user context like a service account, ensure that the account has the necessary permissions to access the file share.
Check whether the Azure File Shares use SMB 3.0 and if the application is expecting a different version, it might have trouble connecting. Verify that the application supports SMB 3.0 https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows.
Verify the application might be facing network restrictions or firewall issues that are not affecting File Explorer.
Ensure that the network configurations like firewalls, proxy settings allow the application to access Azure File Shares. Check if any firewall rules are blocking access to the Azure storage account's SMB endpoint. Verify that port 445 is open on your network, as this is required for SMB connections.
Check if the application is sensitive to the case of the UNC path or might not correctly handle path formatting. Ensure that the UNC path is correctly formatted and case-consistent with how it appears in File Explorer. Use the exact path as seen in File Explorer. Ensure that the “Secure transfer required” setting on your storage account is configured correctly. If this setting is enabled, unencrypted connections will be blocked. If you have any firewall or virtual network rules set up on your storage account, make sure that the IP address or virtual network of your application is allow-listed.
A similar issue is discussed here: https://stackoverflow.com/questions/34799151/exe-is-not-executing-from-schedule-task, https://learn.microsoft.com/en-us/answers/questions/926729/file-share-mount-in-windows-file-explorer.
Here is the doc for your reference: https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files/connectivity/files-troubleshoot-smb-connectivity?tabs=windows
To set up logging and diagnose the issue, you can enable diagnostic logging for your Azure storage account. This will help you track access attempts and errors:
Go to your storage account in the Azure portal.
Navigate to Monitoring > Diagnostics settings.
Add a diagnostic setting to log File operations and send the logs to a Log Analytics workspace, Event Hub, or Storage account.
Hope this answer helps! please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members