DevOps – Erro “New-AzureADServicePrincipal : Error occurred while executing NewServicePrincipal Code: Authentication_Unauthorized” ao tentar Habilitar um Azure Active Directory Domain Services

Sintoma Ao tentar executar o comando New-AzureADServicePrincipal -AppId “2f8cdef31-a31e-4b4a-93e4-5f571e91255a” ocorre o seguinte erro: “New-AzureADServicePrincipal : Error occurred while executing NewServicePrincipal Code: Authentication_Unauthorized Message: User was not found. HttpStatusCode: Forbidden HttpStatusDescription: Forbidden HttpResponseStatus: Completed At line:1 char:1 + New-AzureADServicePrincipal -AppId “2f8cdef31-a31e-4b4a-93e4-5f571e91 … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [New-AzureADServicePrincipal], ApiException     + FullyQualifiedErrorId : Microsoft.Open.AzureAD16.Client.ApiException,Microsoft.Open.AzureAD16.PowerShell.NewServ    icePrincipal” Read more about DevOps – Erro “New-AzureADServicePrincipal : Error occurred while executing NewServicePrincipal Code: Authentication_Unauthorized” ao tentar Habilitar um Azure Active Directory Domain Services[…]