Azure-Samples / Azure-Samples/azure-files-samples

New-ADComputer : The attribute syntax specified to the directory service is invalid

Open
#101 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
261
Forks
202
Avg merge
1d 5h
Merged PRs (30d)
4

Description

I am getting the following when running Join-AzStorageAccountForAuth (latest version)

(I have replaced some of the resource names)

```
VERBOSE: New-ADAccountForStorageAccount: Creating a AD account under OU=AZ,DC=domain,DC=local in domain:domain.local to represent the storage account:stacc1
VERBOSE: Found storage Account 'stacc1' in Resource Group 'rg1'
VERBOSE: Found storage Account 'stacc1' in Resource Group 'rg1'
VERBOSE: Generated service principal name of cifs/stacc1.file.core.windows.net
VERBOSE: AD object name is stacc1, SamAccountName is stacc1.
New-ADComputer : The attribute syntax specified to the directory service is invalid
At C:\Program Files\WindowsPowerShell\Modules\AzFilesHybrid\0.2.4.0\AzFilesHybrid.psm1:2566 char:21
+ New-ADComputer `
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (CN=stacc1,DC=domain,DC=local:String) [New-ADComputer], ADException
+ FullyQualifiedErrorId : ActiveDirectoryServer:8203,Microsoft.ActiveDirectory.Management.Commands.NewADComputer
```

I have used this before without any problems, although not sure which version that was. Does anyone know a way around this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.