我正在尝试将Web App(托管服务标识)中的服务主体添加到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 学分/ 3cc2d09c-4fd4-4251-aa42-9ad6a0440606'因为它是无效的 不是基于 ' https://graph.windows.net/fdfed904-9e03-4e17-89c4-61053e0777be/&#39 ;.在 line:2 char:2 + Add-AzureRmADGroupMember -MemberObjectId 3cc9d09c-4fd4-4251-aa42-9ad ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ + CategoryInfo:InvalidOperation:(:) [Add-AzureRmADGroupMember],Exception + FullyQualifiedErrorId:Microsoft.Azure.Commands.ActiveDirectory.AddAzureADGroupMemberCommand