Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Join-AzStorageAccount DirectoryServiceOptions Error #188

Open
robhiitsd opened this issue Feb 7, 2024 · 0 comments
Open

Join-AzStorageAccount DirectoryServiceOptions Error #188

robhiitsd opened this issue Feb 7, 2024 · 0 comments

Comments

@robhiitsd
Copy link

Attempting to join newly created Azure Storage Account to AD DS via running Join-AzStorageAccount from MS article https://learn.microsoft.com/en-us/azure/storage/files/storage-files-identity-ad-ds-enable#run-join-azstorageaccount

AD Computer object is created, but storage account does not get configured for AD DS.
Receives the following error:
"Set-AzStorageAccount: Cannot validate argument on parameter 'ActiveDirectoryDomainSid'. The argument is null or empty. Provide an argument that is not null or empty,
and then try the command again.
Write-Error: The cmdlet is stopped due to the storage account 'stmtavdapp01' having the DirectoryServiceOptions value: ''. The DirectoryServiceOptions for
the account needs to be 'AD' in order to run the cmdlet."

I was able to configure it by running the Set-AZStorageAccount using MS Article:
https://learn.microsoft.com/en-us/powershell/module/az.storage/set-azstorageaccount?view=azps-11.2.0#example-11-update-a-storage-account-by-enable-files-active-directory-domain-service-authentication-and-then-show-the-file-identity-based-authentication-setting

This did not have to be done in previous version of AZFilesHybrid module.

Using the following AZFilesHybrid version:
ModuleType Version PreRelease Name PSEdition ExportedCommands


Script 0.2.9.0 AzFilesHybrid Core,Desk {Get-IsElevatedSession, Assert-IsElevatedSession, Get-OSPlatfor…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant