microsoft / vscode-azurevirtualmachines

Azure Virtual Machines extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurevirtualmachines
MIT License
32 stars 20 forks source link

The Azure view doesn't auto-refresh if fail to delete VM related resources #378

Open v-ruizh opened 1 year ago

v-ruizh commented 1 year ago

OS: Win 10 Build Version: 20230427.1

Repro Steps:

  1. Right click one VM and select "Delete..." action -> Select resources "virtual machine" and "public IP address" -> Select "Delete" button in confirmation dialog to delete.
  2. One expected error occurs, succeed to delete the VM but fail to delete the public IP address.
  3. Check the deleted VM state from the Azure view.

Expect: The VM is removed from the Azure view.

Actual: The VM is not removed from the Azure view. image

More Info: The deleted VM is removed after refreshing the Azure view.