@Harshit Z Kothari Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
This isn't possible!
You can consider this approach, but I haven't personally repro the issue, so you may give a try. Use a DNS CNAME record to redirect the old share name to the new Azure file share path. However, this requires changes to be made on the on-premises DNS server.
Use a custom domain name: You can use a custom domain name for your storage account and file share. To do this, you need to create a custom domain name in Azure and map it to your storage account. Once the custom domain name is set up, you can use it instead of the original endpoint.
Naming and referencing shares, directories, files, and metadata
Please let us know if you have any further queries. I’m happy to assist you further.
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.