Configuring Azure Function to authenticate against OnPremise Windows File Server?

EnterpriseArchitect 4,976 Reputation points
2024-06-20T03:33:20.1+00:00

Could you please let me know the authentication methods supported for the Azure function peered with the ExpressRoute VNET to have read and write access to the shared folder on the Onpremise File server?

The target file server is running Windows Server 2016 which is already configured with the AD DS service account on the NTFS ACL for Read, Witte and Execute access, however, I cannot find the way to add this username and password under the Azure Function.

Any help would be greatly appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,542 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,121 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,278 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 2,635 Reputation points Microsoft Employee
    2024-06-28T20:28:35.33+00:00

    Hello @EnterpriseArchitect

    To authenticate an Azure Function with an on-premises Windows File Server, you can use the Azure File Share or Azure File Sync service.

    These services allow you to create a connection between your on-premises file server and Azure, and then use that connection to access the files from your Azure Function. To authenticate with Azure File Share, you can use either a Shared Access Signature (SAS) or a storage account key.

    You can find more information on how to authenticate with Azure File Share in the following link: Develop for Azure Files with .NET To authenticate with Azure File Sync, you can use Azure Active Directory (AAD) authentication. You can find more information on how to authenticate with Azure File Sync in the following link: Deploy Azure File Sync

    Regarding your question about adding the AD DS service account username and password under the Azure Function, you can use the storage account key or SAS to authenticate with Azure File Share, and AAD authentication to authenticate with Azure File Sync. You do not need to add the AD DS service account username and password under the Azure Function.


    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    0 comments No comments