How to access Azure file share using DFS entry inside container?

Surana, Jainav 0 Reputation points
2023-07-03T09:48:37.9433333+00:00

My On-premise windows server and Azure file share have same folder structure or hierarchy. I have DFS entry which is pointing to on-premise server. I am using DFS entry to map using "net use" and CmdKey command inside windows container. When try to access any file kept on windows server using DFS , it is accessible. Now, we have changed the pointing so DFS is pointing to Azure File share. But now container is not able to access files kept on Azure file share.
I can access DFS (pointing to Azure file share) from a VM which is in the same domain.

Can anyone share some inputs what can be the issue/fix?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,358 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,486 Reputation points Microsoft Employee
    2023-07-06T08:56:42.8533333+00:00

    @Surana, Jainav As I understand you are not able access the files in Azure Files share folder?

    • But now container is not able to access files kept on Azure file share. Do you get any error message? If so please share the screenshot?
    • How are you trying to access?( Portal, Storage Explorer)
    • Which version of OS are you using?

    If you have changed the DFS (Distributed File System) pointing from your on-premises Windows Server to Azure File Share, but you are facing issues accessing the files on Azure File Share from within a Windows container, there are a few potential causes and solutions you can consider: DNS resolution: Ensure that the DNS resolution for the DFS namespace pointing to Azure File Share is correctly configured. Check the DNS settings within the Windows container and ensure it can resolve the DFS namespace to the correct Azure File Share endpoint.

    Authentication and access permissions: Verify that the Windows container has the necessary authentication and access permissions to access the Azure File Share. Ensure that the container is joined to the same domain as the Azure File Share and has the appropriate credentials to authenticate against the domain.

    Firewall and network connectivity: Check if any firewall rules or network configurations are blocking the Windows container's access to the Azure File Share. Ensure that the required ports (such as TCP 445) are open for the container to establish a connection to the Azure File Share.

    Azure Files authentication: Confirm that the Azure File Share has the appropriate authentication settings configured. Azure Files supports two types of authentication: Azure AD domain authentication and storage account key authentication. Ensure that the chosen authentication method aligns with your environment and is correctly configured.

    Mount point and credentials: Double-check the mount point and the credentials used to mount the Azure File Share within the Windows container. Ensure that the mount point is correctly set up and that the credentials used to access the Azure File Share are accurate and have sufficient permissions.

    Azure VNet integration: If your Windows container is deployed within an Azure virtual network (VNet), make sure that the VNet is integrated with the Azure File Share's VNet. This ensures that the container can communicate with the Azure File Share securely.

    0 comments No comments

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.