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

MS Techie 2,341 Reputation points
2020-12-10T05:37:49.49+00:00

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.

46777-image.png

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
    2020-12-11T09:54:43.43+00:00

    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

    Thanks,
    Grace

1 additional answer

Sort by: Most helpful
  1. Alfredo Revilla (MSFT) 17,096 Reputation points Microsoft Employee
    2020-12-11T17:33:47.383+00:00

    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.