0

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
vish
  • 156
  • 5

1 Answers1

1

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.

Jarnstrom
  • 705
  • 4
  • 9
  • Those servers are done ASR. There is no folder called C:\WindowsAzure\Logs\Plugins. Uninstall take more than 1 hour and failed. – vish Aug 05 '19 at 03:23
  • @nomad Thats weird, I have servers migraed with ASR which all got the folder. Can you install any extensions at all? Maybe there is some restriction inside your VM which prevent Azure from creating the logs and then fails? – Jarnstrom Aug 06 '19 at 11:59
  • Every extension installation same as that. – vish Aug 07 '19 at 03:54
  • Is the VM agent installed and running? Get-AzVM -name | Select -ExpandProperty OSProfile | Select -ExpandProperty Windowsconfiguration – Jarnstrom Aug 07 '19 at 06:26