Convert-VHD:术语“Convert-VHD”未被识别为 cmdlet 的名称

Convert-VHD:术语“Convert-VHD”未被识别为 cmdlet 的名称

我收到以下错误:

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

在 Ubuntu 18.04 上安装的 Azure Power shell 中(不支持 Windows)。

命令尝试: Convert-VHD -Path src/vhdfile_old.vhd -DestinationPath tgt/vhdfile_new.vhd -VHDType Fixed

答案1

在 Ubuntu 18.04 上安装了 Azure PowerShell。

尝试的命令:Convert-VHD -Path src/vhdfile_old.vhd -DestinationPath tgt/vhdfile_new.vhd -VHDType Fixed

此特定命令是 PowerShell Core 目前不支持的命令。

Convert-VHD 是仅适用于 Hyper-V 的 cmdlet并且实际上要求在系统上安装 Hyper-V。

Convert-VHD 未列在任何 Azure PowerShell 模块中。

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

相关内容