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

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

  • Can I install Hyper-V on Ubuntu? – Tom J Muthirenthi Apr 10 at 12:39
  • No; It’s a Windows only feature – Ramhound Apr 10 at 12:41
  • So do we have any solution for Ubuntu (Any workarounds)? – Tom J Muthirenthi Apr 10 at 12:42
  • @TomJMuthirenthi - I think my answer addresses that question – Ramhound Apr 10 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.