错误代码:TargetDiskBlobAlreadyExists

错误代码:TargetDiskBlobAlreadyExists

我正在使用现有 VHD 创建 AzureRM VM,我收到的错误是

New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vm
New-AzureRmVM : Long running operation failed with status 'Failed'.
StartTime: 4/18/2016 3:38:49 PM
EndTime: 4/18/2016 3:38:50 PM
OperationID: a99cdc43-366c-4a02-8ca9-2cfca79de8e3
Status: Failed
ErrorCode: TargetDiskBlobAlreadyExists
ErrorMessage: Blob https://*******.blob.core.windows.net/essrestore/Kel-DC01201611012647.vhd already exists. Please provide a different blob URI as target 
for disk 'KELDC1_osDisk'.
At line:2 char:1
+ New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $vm

答案1

创建一个新的 blob 并使用现有 VHD 部署新的 VM。确保将 VHD 复制到新容器,并在部署 VM 时指定容器路径,例如:

$osDiskVhdUri = "https://*****.blob.core.windows.net/essrestore/Kel-FonSrv201611217334.vhd" 

这将使用您现有的 VHD 安装新的 VM。

相关内容