Change from ComputerAccount to ServiceLogon Account for Azure ADDS Fileshare

FrankGrimes513 21 Reputation points
2020-11-16T15:27:12.317+00:00

Hi Guys,
I am running the script from https://video2.skills-academy.com/en-us/azure/storage/files/storage-files-identity-ad-ds-enable

I change parameter below, but it still creates a computer account in my AD

-DomainAccountType "ServiceLogonAccount" <# Default is set as ComputerAccount "<ComputerAccount|ServiceLogonAccount>" #>

Any ideas?

TIA

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

2 answers

Sort by: Most helpful
  1. deherman-MSFT 37,081 Reputation points Microsoft Employee
    2020-11-16T23:55:54.6+00:00

    @FrankGrimes513
    I tested the script and confirmed that by specifying the -DomainAccountType "ServiceLogonAccount" it creates the ServiceLogonAccount as Type=User and Description of "Service logon account for Azure storage account accountname." If I leave off this option I see it creates with Type=Computer and Description of "Computer account object for Azure storage account accountname." Can you confirm you are using the latest AzFilesHybrid module? Are you able to delete the account and retry the script? What EncryptionType are you specifying? You can also try the manual steps which are listed as Option 2.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

  2. deherman-MSFT 37,081 Reputation points Microsoft Employee
    2020-11-19T21:07:42.707+00:00

    @FrankGrimes513 I wouldn't expect that error after it was setup. Did you try running Update-AzStorageAccountADObjectPassword to see if the error goes away? You can try manually creating the service account but it shouldn't be necessary.

    0 comments No comments

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.