@SKT
I understand that you want to setup Azure File Sync so that when on-premises it mounts the local file server. When the client is not on-premises you want them to mount via the Azure File Share, not through VPN. Please correct me if I am misunderstanding.
There is not a supported feature currently to switch automatically between the two mount options. One thing you could consider doing is having both mounts present on the client. Client would use the faster mount when on-premises and they would have the other mount available.
One problem that you might face when connecting over the internet is that many ISPs block port 445 traffic which is needed to connect via SMB. See here for more information on mounting Azure Files. Another thing to keep in mind is that changes made to the Azure file share by using the Azure portal or SMB are not immediately detected and replicated like changes to the server endpoint. Azure Files does not yet have change notifications or journaling, so there's no way to automatically initiate a sync session when files are changed. For more info, please see the Azure File Sync FAQ.
For product feedback and feature requests I will refer you to our feedback forum. This allows the community to add their voice and upvote popular ideas. The forums are monitored and responded to by our product teams.
https://feedback.azure.com
-------------------------------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.