ErrorCode:TargetDiskBlobAlreadyExists


0

我正在使用现有的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

问题是什么?
Smeerpijp

我解决了这个问题,我创建了新的blob,并且能够使用现有的VHD部署新的VM。感谢您的支持。 :)
Sachin Tiwari

1
可能是一个好主意发布答案以供其他用户使用:)
Smeerpijp

确保将VHD复制到新Container,并在部署VM时应该为容器路径,例如: - $ osDiskVhdUri =“https://*****.blob.core.windows.net/essrestore/Kel- FonSrv201611217334.vhd“这将使用您现有的VHD安装新的VM。
Sachin Tiwari

Answers:


1

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

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

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

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.