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:
- PowerShell Version: Ensure you are using PowerShell 5.1 or later, as the
Join-AzStorageAccountcmdlet requires this version. - 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 inOrganizationalUnitDistinguishedNameexists and is accessible. - 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.
- Network Connectivity: Ensure that the machine where you are running the script has proper network connectivity to the Active Directory Domain Services.
- 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: