AD authentication for Azure File Share

MS Techie 2,751 Reputation points
2022-12-20T13:30:21.317+00:00

i followed the article given in the microsoft website , for enabling on-prem Active Directory Authentication for Azure File Share.
https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-ad-ds-enable#run-join-azstorageaccount

i ran the script on domain joined Azure VM and get below error
272775-image.png

Does it require any firewall ports to be opened for this powershell script to work ? what are the ports ?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,420 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sumarigo-MSFT 47,466 Reputation points Microsoft Employee Moderator
    2022-12-20T13:50:15.833+00:00

    @MS Techie Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Can you check and confirm whether Active Directory is enabled on your storage account with the following script: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-ad-ds-enable#confirm-the-feature-is-enabled

    We strongly recommend that you review the How it works section to select the right AD source for authentication. The setup is different depending on the domain service you choose. This article focuses on enabling and configuring on-premises AD DS for authentication with Azure file shares.

    If you're new to Azure Files, we recommend reading our planning guide.

    There is a video, Prerequisites and Supported scenarios and restrictions in this article: which help you to enable the on-prem Active Directory Authentication for Azure File Share.

    Note: Azure AD DS authentication over SMB with Azure file shares is supported only on Azure VMs running on OS versions above Windows 7 or Windows Server 2008 R2.

    Ensure port 445 is open: The SMB protocol requires TCP port 445 to be open; connections will fail if port 445 is blocked. You can check if your firewall is blocking port 445 with the Test-NetConnection cmdlet. To learn about ways to work around a blocked 445 port, see the Cause 1: Port 445 is blocked section of our Windows troubleshooting guide.

    Please let us know if you have any further queries. I’m happy to assist you further.

    ----------

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

    2 people found this answer helpful.
    0 comments No comments

  2. MS Techie 2,751 Reputation points
    2022-12-28T15:09:37.727+00:00

    i figured out the answer .

    Outbound traffic from domain joined Azure VM should be opened to on-prem AD Web Server (ADWS) on Port 9389
    Once this port was opened, i was able to perform the operation

    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.