Is it possible to mount Azure file share using managed identity in Azure linux VM?

Bakkiya Nedumaran 1 Reputation point
2022-07-18T16:20:37.833+00:00

Can we mount the Azure file share in Azure linux VM without any credentials in linux VM through Automation script?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,422 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2022-07-19T21:43:59.6+00:00

    @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.

    0 comments No comments

  2. Dan Oldenkamp 6 Reputation points
    2023-12-06T23:17:05.31+00:00

    Incorrect.

    Cannot use an SAS on Azure Storage Account SMB file share.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.