@Bakkiya Nedumaran Thank you for reaching out to Microsoft Q&A. I understand that you want to use Managed Identity to mount Azure File Shares.
Managed Identity cannot be used for mounting Azure File Shares. Only options available are Shared Access Signature, Storage Account Name/Key or specify Storage Account connection string to connect to your File Service. If you wish, you can leave your Feedback in our Feedback channel. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure and I will be reporting this feature to our team as well.
Please refer to these previous threads with a similar ask- https://stackoverflow.com/questions/69619084/is-it-possible-to-connect-azure-file-share-storage-account-from-c-sharp-consol
https://learn.microsoft.com/en-us/answers/questions/595264/is-it-possible-to-connect-azure-file-share-storage.html
https://learn.microsoft.com/en-us/answers/questions/193121/can-we-use-managed-identity-to-connect-to-azure-fi.html
Please let us know if you have any further questions and we will be glad to assist you further. Thank you!
Remember:
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
Want a reminder to come back and check responses? Here is how to subscribe to a notification.