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

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
  • 44,080