question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deleting a user is not supported on Windows VM

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command az vm user delete --ids

Describe the bug Hi, I am trying to delete a user across multiple VMs in different subscriptions, the az cli, ‘az vm user delete’ allows you to provide ids for all the VMs irrespective of subscription. when i use the az vm user delete cmd, i get the error “Deleting a user is not supported on Windows VM”. However i noticed a workaround on this issue, which doesn’t quite cover my use-case. Any ideas on how to resolve? Thanks

Expected behavior The local account user should be deleted from the VMs

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
grizzlytheodorecommented, Aug 22, 2022

turns out Manuj does not work with VM Ex. I forwarded email to correct team.

1reaction
JereO-Nccommented, Aug 22, 2022

@zhoxing-ms thanks for the feedback.looking forward to the response.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deleting user from VM, unsupported · Issue #23453 - GitHub
Hi @navba-MSFT We have 10 Windows VMs; These are used to access environments and we often setup user accounts on each VM. I...
Read more >
Unassign Hyper V VM with deleted User account
I have a VM in my Collection that has a User Account assigned to it. The account is S-1-5-21-18354656...... I am unable to...
Read more >
Delete a VM and attached resources - Azure Virtual Machines
Set delete options when creating a VM. Open the portal. Select + Create a resource.
Read more >
Can't delete a virtual machine - TechNet - Microsoft
All services are running, I am running the console locally on the machine via Microsoft RDP, and another user can not delete it...
Read more >
Delete a user profile in Windows - Microsoft Learn
This article introduces how to delete a user's profile on a Windows-based device. Note. To perform these methods, you must be a member...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found