Newbie: Want to use File Share to store app and support files for execution

Mark Siminski 0 Reputation points
2025-11-17T15:37:31.7166667+00:00

I have many users that will run an app, and they all need access to the same shared Estimate files so I thought that I would use File Share to store the app and support files. Using a script, I would mount the file share with the app and shared files to the user's PC. The script would then run the shared app and use the shared files. Does this approach make sense?

I am running into many issues, first being trying to Enable AD DS authentication for File Shares and the doc that describes this gives a script that is supposed to do this, but the Join-AzStorageAccount fails with an unhelpful error.

Join-AzStorageAccount `

    -ResourceGroupName $ResourceGroupName `  

    -StorageAccountName $StorageAccountName `

    -SamAccountName $SamAccountName `

    -DomainAccountType $DomainAccountType 

    -OrganizationalUnitDistinguishedName $OuDistinguishedName

Error: OperationStopped: Operation is not supported on this platform.

I'm using Windows, the names are correct, I have double and triple checked them

DomainAccountType is ComputerAccount

I tried using a VM but I can't have multiple people running the same VM.

I have investigated the error message but have not found a solution to correct this.

Any help would be appreciated, even if I am going down the wrong road...

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

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-17T15:38:05.3466667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Your approach to using Azure File Share to store and share application files among multiple users makes sense. Mounting the file share on each user's PC and running the application from there is a common practice for shared resources.

    Regarding the issue with enabling Active Directory Domain Services (AD DS) authentication for your file shares, the error message "Operation is not supported on this platform" can occur for several reasons. Here are a few things to check:

    1. PowerShell Version: Ensure you are using PowerShell 5.1 or later, as the Join-AzStorageAccount cmdlet requires this version.
    2. Domain Account Type: Since you are using ComputerAccount for DomainAccountType, make sure that the account you are trying to create is allowed in your Active Directory and that the organizational unit (OU) specified in OrganizationalUnitDistinguishedName exists and is accessible.
    3. Permissions: Verify that the credentials you are using have the necessary permissions to create a computer account in the specified OU. You may need domain admin privileges for this operation.
    4. Network Connectivity: Ensure that the machine where you are running the script has proper network connectivity to the Active Directory Domain Services.
    5. Environment: If you're running the script from a non-domain-joined machine, it may not have the necessary context to perform the operation.

    If you continue to face issues, you might want to consider using the Debug-AzStorageAccountAuth cmdlet to perform basic checks on your AD configuration, which could provide more insight into the problem.


    References:

    0 comments No comments

  2. Jeevan Shanigarapu 3,275 Reputation points Microsoft External Staff Moderator
    2025-11-17T18:20:33.4833333+00:00

    Hello @Mark Siminski,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    Hosting shared app files on Azure File Shares is a common and valid solution for multi-user access. If Join-AzStorageAccount is failing, it's often because the command is being executed in an unsupported environment. The join process needs to be performed on a domain-joined Windows machine, rather than in Azure Cloud Shell or on a non-domain PC.

    Here’s how to proceed:

    Run the command on a domain-joined Windows computer (not Cloud Shell) with network access to your domain controllers, using Windows PowerShell 5.1 as Administrator.

    Make sure you have the latest versions of Az PowerShell, AzFilesHybrid modules, and RSAT tools installed.

    Your Azure account should have Owner/Contributor rights on the storage account, and your AD account must be able to create computer objects in the target OU.

    Use this command (replace with your details):

    Join-AzStorageAccount `
      -ResourceGroupName "<rg>" `
      -StorageAccountName "<storageaccount>" `
      -SamAccountName "<15-char-sAM>" `
      -DomainAccountType ComputerAccount `
      -OrganizationalUnitDistinguishedName "OU=<ou>,DC=contoso,DC=com"
    
    1. If you still see errors, try:
    Debug-AzStorageAccountAuth -ResourceGroupName "<rg>" -StorageAccountName "<storageaccount>" -Verbose
    

    This will show troubleshooting steps.

    Easier option: If your users and devices are Microsoft Entra joined (or hybrid), you can use Entra Kerberos for Azure Files. This lets you skip the storage join step and simplifies access.

    Refer the below links for more information:
    https://learn.microsoft.com/en-us/azure/storage/files/storage-files-introduction
    https://learn.microsoft.com/en-us/azure/storage/files/create-classic-file-share?tabs=azure-portal
    https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files/connectivity/files-troubleshoot?tabs=powershell

    Kindly let us know if the above helps or you need further assistance on this issue.

    Please "Accept the Answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.