gpt4 book ai didi

azure - 如何删除 Azure Active Directory 上的 guest 用户?

转载 作者:行者123 更新时间:2023-12-03 03:09:04 24 4
gpt4 key购买 nike

我添加了一个具有目录角色的用户作为“访客”。我现在想删除。Azure 门户用户界面有一个“删除”选项,但它是灰色的,没有任何解释。我尝试过“查找用户”屏幕,尝试过“快速概述屏幕”,并且尝试过“管理 -> 用户和组 -> 所有用户”。同样,“删除”被禁用,没有任何解释。

我也尝试过通过Powershell。我将 AzureRM 和 Azure 模块安装到 Powershell 中。我访问我的 Azure 帐户并按照多个在线文档(即 Azure GitHub 文档: https://github.com/Azure/azure-docs-powershell-azuread/blob/master/Azure%20AD%20Cmdlets/MSOnline/index.md )来访问 Azure AD,但我无法连接。

我在 Powershell 中输入:

$Msolcred = Get-credential

系统会提示输入凭据,然后按照教程我尝试使用 cmdlet:

Connect-MsolService -Credential $MsolCred

但我收到错误:

Connect-MsolService : The term 'Connect-MsolService' is not recognized as the name of a cmdlet, function, script fi
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.

最佳答案

Add-AzureRmAccount -SubscriptionName 'SUBNAME'
Get-AzureRmADUser #Look up the user GUID
Remove-AzureRmADUser -UPNOrObjectId 'USER GUID'

要安装此模块,您应该运行“Install-Module AzureRM”(这将需要一些时间)

关于azure - 如何删除 Azure Active Directory 上的 guest 用户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41195029/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com