无法在 Azure Site Recovery 中更改 Linux VM 的复制属性

问题描述

我们将一些 Windows 和 Linux VM 从 Hyper-V 复制到 Azure
作为恢复准备的一部分,我们需要更改 VM 参数,例如大小、nsg、要通过 Set-AzRecoveryServicesAsrReplicationProtectedItem cmdlet 恢复到的资源组(不同于 ASR 保管库 RG)

对于 Windows,它运行良好,但对于 Linux,我们得到了 Failed to update the LicenseType for the physical or virtual machine.
我们不需要更改任何与许可证相关的内容,只需要将 RG 恢复到

为什么会出现这个问题,我们该如何解决

解决方法

解决方案是将参数 -LicenseType 指定为 NoLicenseType