Enable file sharing on a mapped network drive via Azure - Azure AD joined devices - how to setup security

Joseph Kelly 0 Reputation points
2023-07-21T19:51:53.6833333+00:00

I currently have setup a Azure file storage, and file share and have successfully mapped this to some of the Windows Laptops.

We only use Azure Active Directory, have nothing on-prem and I want to know how to secure and use the file service across identities. I only want certain people to be able to access the file share, so instead of using the storage account key I want to be able to use our Azure AD to control access. But it seems unclear if this can be done in the absence of an on-prem or hybrid solution?

We're a charity and I'm just using self taught knowledge. If we keep using storage account key does this leave us open to anyone on the internet being able to access the files?

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

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,906 Reputation points Microsoft Employee Moderator
    2023-07-24T22:15:00.4666667+00:00

    @Joseph Kelly

    Thank you for your detailed post and I apologize for the delayed response!

    I understand that you set up Azure Files and are now looking at options to secure it - for example, since you only use Azure AD, you'd like to use Azure AD for access control instead of using your Storage Account Key. To hopefully help point you in the right direction or resolve your issue, I'll share my findings below.


    Findings:

    When it comes to securing access to your Azure Files from within the Azure Portal, you should be able to choose how to authorize access to file data using either your Azure AD account or the storage account access key. For more info.

    User's image

    When trying to control access to your Azure File share data across identities, the only way I found to do this would be through assigning share-level permissions on your storage account, which would only be available once you've enabled an Active Directory (on-prem AD) source.

    Please keep in mind that a storage account key is an administrator key for your storage account, including administrator permissions to all files and folders within the file share you're accessing. If this isn't sufficient for your workload, it's recommended to use Azure File Sync or identity-based authentication over SMB (AD authentication). For more info.


    Additional Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.

    1 person found this answer 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.