Azure VM extention Failed to Delete

azureazure-devops

Azure VM extension installed on windows server. But its status is unavailable. Unable to uninstall it.

Failed to delete the virtual machine extension
Failed to delete the virtual machine extension 'AzureNetworkWatcherExtension'. Error: error

Best Answer

Every extension has logs inside the VM, check C:\WindowsAzure\Logs\Plugins<extensionName> and see if they tell you why it fails.

Sometimes when extensions seems to be stuck, redeploying the VM to new nodes and then retry to uninstall/install them have worked.