3

我正在尝试将 Web 应用程序(托管服务标识)中的服务主体添加到 Azure AD 组,但无法弄清楚为什么会出现错误。我正在使用 AzureRM 6.0.1。知道我哪里可能出错了吗?

PowerShell 命令:

Add-AzureRmADGroupMember -MemberObjectId 3cc2d09c-4fd4-4251-aa42-9ad6a0440606 -TargetGroupObjectId 2ca727c0-e2ec-46d4-9202-2144d83eb6b5 -PassThru

错误:

Add-AzureRmADGroupMember:URI ' https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObj ects/3cc2d09c-4fd4-4251-aa42-9ad6a0440606' 无效,因为它不是基于“ https://graph.windows.net/fdfed904-9e03-4e17-89c4-61053e0777be/ ”。在 line:2 char:2 + Add-AzureRmADGroupMember -MemberObjectId 3cc9d09c-4fd4-4251-aa42-9ad ... + ~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: ( :) [Add-AzureRmADGroupMember],异常 + FullyQualifiedErrorId:Microsoft.Azure.Commands.ActiveDirectory.AddAzureADGroupMemberCommand

4

0 回答 0