自定义通用VHD在Azure中的激活密钥提示中被触发

时间:2018-02-06 12:15:30

标签: windows azure azure-virtual-machine

我按照this link上传到天蓝色的hyper-v VHD。

VHD图像在上传到azure之前被概括。上传后,尝试使用上传的VHD映像创建VM,并且VM在超时后未完成提供。查看虚拟机的启动诊断虚拟机卡在产品密钥输入提示中。

enter image description here

记录以下错误:

New-AzureRmVM : Long running operation failed with status 'Failed'. Additional Info:'OS Provisioning for VM 'PSTACBUI'
did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning
state later. Also, make sure the image has been properly prepared (generalized).
 * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
 * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ '
ErrorCode: OSProvisioningTimedOut
ErrorMessage: OS Provisioning for VM 'PSTACBUI' did not finish in the allotted time. The VM may still finish
provisioning successfully. Please check provisioning state later. Also, make sure the image has been properly prepared
(generalized).
 * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/
 * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/
StartTime: 2/2/2018 11:04:08 PM
EndTime: 2/2/2018 11:50:59 PM
OperationID: 0a4f1ac8-9274-4fa8-b396-71c8eb690653
Status: Failed
At line:1 char:1
+ New-AzureRmVM -VM $vm -ResourceGroupName tacoud -Location $location
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureRmVM], ComputeCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.NewAzureVMCommand 

如何跳过多个VM部署的产品激活提示?

1 个答案:

答案 0 :(得分:2)

这通常发生在VHD未正确推广(缺少步骤)或在上传到Azure之前重新打开时。

确保在概括过程中选择每个步骤:

enter image description here

然后确保在上传到Azure之前不再重新打开VM。

同时检查此链接以确保正确执行所有正确的预处理步骤:

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image