创建实验室后无法调整参考 VM 的大小

Unable to resize the reference VM once the lab has been created

在 Azure 实验室服务课堂实验室中,一旦创建了实验室,我就无法调整参考 VM 的大小。我需要这个,因为我已经完全配置了一个参考 VM,现在已经发布了我需要将 VM 的规格从标准提升到性能。

labs portal UI doesn't expose this functionality, nor does the Az.LabsServices 豪华模块。 我已经尝试将我的更改保存到共享库中的图像中,然后在使用新规范创建新实验室时引用该图像。这个新实验室的问题是机器没有从保存的图像继承所有注册表修改和主要用户设置。 除非有无法调整这些 VM 大小的特定未记录原因,否则它们应遵守 azure documentation 中描述的 REST 端点功能。我试过的 API 调用是以下各种组合:

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups
/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts
/{labAccountName}/labs/{labName}/environmentsettings
/{environmentSettingName}?api-version=2018-10-15

或更新的端点

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups
/{resourceGroupName}/providers/Microsoft.LabServices/labaccounts
/{labAccountName}/labs/{labName}/environmentsettings
/{environmentSettingName}?api-version=2019-01-01-preview

其中 {environmentSettingName} 设置为 defaultproperties.resourceSettings 有效载荷从 {"properties":{"resourceSettings":{"size":"Performance"}}}{"resourceSettings":{"size":"Performance"}} 变化 和其他组合

我从 API 那里得到的唯一回应是 "The operation is not supported"

很遗憾,不支持调整模板 VM 的大小。共享图像库仅支持需要 sysprep 的通用图像,因此设置会丢失。我们将把这个场景作为一个功能建议。