Hi
It seems that you the on premise data source (file) exists on the on-premise server domain instead of Azure VM, right?
In your scenario, you need to make sure Azure VM network can communicates with on-premise server domain network. You need to configure VPN firstly. For more information, see:
Connect an on-premises network to a Microsoft Azure virtual network
Best Regards,
Qiuyun Yu