Is it possible to connect Azure File share (Storage account) from C# using Managed Identity?

Nikky 21 Reputation points
2021-10-19T06:55:07.653+00:00

I was trying to upload a file to Azure file share using my C# code using the Managed identity. The code will be deploying to an azure VM which has managed identity with the Storge account (File Share SMB). Is it possible to use DefaultAzureCredential in order to avoid connection string/access keys? pls, advise me.

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

Accepted answer
  1. Sumarigo-MSFT 47,471 Reputation points Microsoft Employee Moderator
    2021-10-19T10:36:35.007+00:00

    @Nikky I see there is a similar thread discussion posted Stack overflow forum: https://stackoverflow.com/questions/69619084/is-it-possible-to-connect-azure-file-share-storage-account-from-c-sharp-consol , Have you referred to the suggestion mentioned over-there, If the issue still persist, Please let us know if you have any further queries. I’m happy to assist you further.
    Looking forward for your reply!

    ---------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to 141659-image.png and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    4 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.