0
이것은 최신 Powershell 및 Azure 모듈을 사용하고 있습니다. 사용자가 삭제되었습니다. 제 질문은 왜 그들을 다시 만들 수 없습니까?AzureAD는 사용자가 존재하지 않을 때 존재한다고 생각합니다.
PS C:\Users\Administrator> Get-MsolUser -UserPrincipalName
"[email protected]"
Get-MsolUser : User Not Found. User: [email protected]
At line:1 char:1
+ Get-MsolUser -UserPrincipalName "[email protected]"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [Get-MsolUser], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.UserNotFoundException,Microsoft.Online.Admini
stration.Automation.GetUser
PS C:\Users\Administrator> new-msoluser -DisplayName Daniel -UserPrincipalName [email protected] -UsageLocati
on NO -BlockCredential $false -ImmutableId DANIELB620
new-msoluser : Unable to add this user because a user with the user principal name already exists.
At line:1 char:1
+ new-msoluser -DisplayName Daniel -UserPrincipalName [email protected] ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [New-MsolUser], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.UniquenessValidationException,Microsoft.Onlin
e.Administration.Automation.NewUser