0

I am getting the below error:

Convert-VHD : The term 'Convert-VHD' is not recognized as the name of a cmdlet

in Azure Power shell installed on Ubuntu 18.04 (Not on Windows).

Command tried: Convert-VHD -Path src/vhdfile_old.vhd -DestinationPath tgt/vhdfile_new.vhd -VHDType Fixed

  • Possible duplicate of [Powershell Resize-VHD is not recognized as the name of a cmdlet](https://superuser.com/questions/1307441/powershell-resize-vhd-is-not-recognized-as-the-name-of-a-cmdlet) – LotPings Apr 10 '19 at 11:59
  • @LotPings - Author is using Ubuntu not Windows. However, it does appear, this is a caused by the fact the module itself requires Hyper-V – Ramhound Apr 10 '19 at 12:03
  • @LotPings The solution suggested works only on Windows. I am trying with Ubuntu. – Tom J Muthirenthi Apr 10 '19 at 12:41

1 Answers1

0

with Azure PowerShell installed on Ubuntu 18.04.

Command tried: Convert-VHD -Path src/vhdfile_old.vhd -DestinationPath tgt/vhdfile_new.vhd -VHDType Fixed

This particular command is a command is not supported by PowerShell Core at this time.

Convert-VHD is a Hyper-V only cmdlet and actually requires Hyper-V to be installed on the system.

Convert-VHD isn’t listed as being in any of the Azure PowerShell modules.

Source: https://docs.microsoft.com/en-us/powershell/azure/get-started-azureps?view=azps-1.7.0

Ramhound
  • 41,734
  • 35
  • 103
  • 130