Can we use Managed identity to connect to Azure fileshare from AppService Container mount path option ?

MS Techie 2,341 Reputation points

Can we use Managed identity to connect to Azure FileShare from Azure App Service container, at the time of mounting the path to App Service windows container. As of today, it uses Access Key.


Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,576 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,610 questions
Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
823 questions
1 vote

Accepted answer
  1. Grmacjon-MSFT 9,501 Reputation points

    Currently, you can only use the access key to connect your azure file. keep in mind that this feature is still in preview. If you like to add this as a feature request please leave your feedback here.

    Hope that helps. please let us know if you have other questions


1 additional answer

Sort by: Most helpful
  1. Alfredo Revilla (MSFT) 17,096 Reputation points Microsoft Employee

    Hello, as @Grmacjon-MSFT points out you can not user managed identity to access Azure file shares, however you might try using them to store and access the key in Azure Key Vault and map the share to a drive using powershell or c# code. Alternatively you might want to try the File service REST API which authenticates using the share key too.

    Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.