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 #202

Closed v-ruizh closed 3 years ago

v-ruizh commented 3 years ago

OS: All Build Version: 20210202.4

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:

  1. Right click the VM and select "Delete..." again, the resource list still contains the resource "virtual machine". image
  2. Refresh can fix this issue.