Remove tenant user from Windows Azure Pack

Shares

The only way (known to me) to remove tenant user  from Windows Azure Pack is by using Powershell. Below simple script to remove tenant user from Windows Azure Pack. Run it from one of the Windows Azure Pack servers.

# credentials for performing actions
$AuthSite = <IP or FQDN of AdminAuthenticationSite>:30072
$Credential = Get-Credential
$token = Get-MgmtSvcToken -Type Windows -AuthenticationSite $AuthSite -ClientRealm "http://azureservices/AdminSite" -User $credential -DisableCertificateValidation
$emailaddress='artur(at)NutanixDotCom'

Check portal, you should see “Delete in progress” in management portal.

WAP deletion pending user

WAP deletion pending user

$adminApiUri = <AdminAPIService IP or FQDN>:30004
PS C:\Windows\system32> Get-MgmtSvcUser -AdminUri $adminApiUri -Token $Token -First 5

Name                : artur(at)NutanixDotCom
Email               : artur(atNutanixDotCom
State               : DeletePending
CreatedTime         : 4/1/2015 8:12:32 AM
SubscriptionCount   : 0
ActivationSyncState : Syncing
LastErrorMessage    : 
ExtensionData       : 

PS C:\Windows\system32> Remove-MgmtSvcUser -AdminUri $adminApiUri -Token $token -Name $emailaddress

PS C:\Windows\system32> Get-MgmtSvcUser -AdminUri $adminApiUri -Token $Token -First 5

PS C:\Windows\system32>

 

0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

You may also like...

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Bastiaan

Hi, I’ve followed your guide and deleted the tenant. Now when the same e-mail adres wan’t to register, the Tenant web page displays a message that the e-mail address is already in use. While WAP and VMM have no record of it anymore. Any idea?

1
0
Would love your thoughts, please comment.x
()
x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Pin It on Pinterest