File Shares Azure Active Directory for RemoteApp

Kharche, Prashant 1 Reputation point
2022-08-16T11:11:04.983+00:00

We have set AVD Remote App successfully and are able to access the remote app for Azure Active Directory users.
To make the storage persistent, following the steps
https://learn.microsoft.com/en-in/azure/virtual-desktop/fslogix-profile-container-configure-azure-files-active-directory?tabs=adds

When invoking a command Join-AzStorageAccount, I am getting following error

Assert-IsDomainJoined : The cmdlet, script, or module must be run in a domain-joined environment.
At C:\Users\<username>\Documents\WindowsPowerShell\Modules\AzFilesHybrid\0.2.4.0\AzFilesHybrid.psm1:4427 char:9

  • Assert-IsDomainJoined
  • ~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Assert-IsDomainJoined

Thanks for any suggestions or help here.

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

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,336 Reputation points
    2022-08-16T19:02:11.08+00:00

    @Kharche, Prashant Are you using Azure AD or on-premise AD here? If using Azure AD, here are the steps-

    • From the Azure portal, open the storage account you created previously.
    • In the Data storage section, select File shares.
    • In the main section of the page, next to Active Directory, select Not configured.
    • In the box for Azure Active Directory Domain Services, select Set up.
    • Tick the box to Enable Azure Active Directory Domain Services (Azure AD DS) for this file share, then select Save. An Organizational Unit (OU) called AzureFilesConfig will be created at the root of your domain and a computer account named the same as the storage account will be created in that OU.

    Please let me know if this helps. Let us know if you have any more questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.


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.