chef/knife-azure

`--delete-resource-group` works, but exits as failed

Closed this issue · 1 comments

Using a build from master:

λ  knife azurerm server delete new-vm-name --delete-resource-group --azure-resource-group-name bakhknives
WARN: Azurerm subcommands are experimental and of alpha quality. Not suitable for production use. Please use ASM subcommands for production.
WARNING: Deleting resource group will delete all the virtual_machines inside it.
Do you really want to delete resource group? (Y/N) Y
Deleting Resource Group bakhknives and Virtual Machine new-vm-name ..
Resource group deletion takes some time. Please wait ...
ERROR: undefined method `value!' for nil:NilClass
ERROR: Something went wrong. Please use -VV option for more details.
C:\Users\b
λ  knife azurerm server delete new-vm-name --delete-resource-group --azure-resource-group-name bakhknives -VV
INFO: Using configuration from C:/Users/b/.chef/knife.rb
WARN: Azurerm subcommands are experimental and of alpha quality. Not suitable for production use. Please use ASM subcommands for production.
WARNING: Deleting resource group will delete all the virtual_machines inside it.
Do you really want to delete resource group? (Y/N) Y
Deleting Resource Group bakhknives and Virtual Machine new-vm-name ..
Resource group deletion takes some time. Please wait ...
ERROR: Resource group 'bakhknives' could not be found.
DEBUG: {"error":{"code":"ResourceGroupNotFound","message":"Resource group 'bakhknives' could not be found."}}

Hi @binamov,
I have reproduced issue and fixed in #459
Thanks.