【发布时间】:2017-06-07 18:03:31
【问题描述】:
我正在尝试使用 ARM 模板部署 3 个 azure Ubuntu vm。它们被部署为更大的资源组、存储帐户、SQL 服务器等基础架构部署的一部分。除了创建 VM 之外,一切都运行良好。在使用单个 VM 进行测试期间,脚本可以正常工作,但使用 3 时出现以下错误 -
New-AzureRmResourceGroupDeployment : 16:52:57 - Resource Microsoft.Compute/virtualMachines 'xxxV3Monitor1' failed with message '{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "DiskImageNotReady",
"message": "Disk image https://xxxxxx.blob.core.windows.net/rootvhd/v1ubuntudocker.vhd is in Pending state. Please retry when image is ready."
}
似乎我们正在使用的自定义根 VHD 映像由于处于“待处理”状态而失败,我认为这是文件被锁定,因为它被用于创建其他 VM 之一?
非常感谢任何帮助。谢谢。
【问题讨论】:
-
补充一点,我已经尝试将每个 VM 设置为具有前一个 VM 的依赖项以错开构建,但这似乎没有帮助。
标签: json powershell azure cloud