azure-cli: Deleting a user is not supported on Windows VM

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

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

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