1

我添加了一个具有目录角色的用户作为“访客”。我现在想删除。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. 
4

1 回答 1

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

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

于 2016-12-17T13:09:49.333 回答