Join Azure File Share to On-Prem Domain Controller

Author: Sakaldeep Yadav

June 25, 2020

Join the Azure File Share to the domain. 


Step 1:  Download AzFilesHybrid module here


Step 2: Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Currentuser

Step 3: .\CopyToPSPath.ps1  and then Import-Module -name AzFilesHybrid


Step 4. Connect-AzAccount

Step 5: elect-AzSubscription -SubscriptionName "Azure Subscription Name"

Step6: join-AzStorageaccountForAuth -ResourceGroupName "<resource-group-name>" -Name "<storage-account-name>" -DomainAccountType "ComputerAccount" -OrganizationalUnitName "<OU--FRIENDLY-NAME>"

You can see the storage account 'addsrest' as a computer account in your domain controller as below.


You can check the properties of it below.

On the Azure portal, verify the AD DS has enabled.


Now, assign the user permission to access the resources.


Map the Azure File share as a drive to the domain-joined computer.


You will see something like below.

I hope this is helpful and if there‚Äôs something specific you want to hear about, let us know in the comments, or tweet us at @sakaldeep

Total visits : 32