PowerShell script exchange
Post Reply
esir
Novice
Posts: 8
Liked: never
Joined: Mar 29, 2019 2:52 pm
Full Name: Esir Kings
Contact:

Failed to find a disk with the specified name

Post by esir » Jul 05, 2019 10:05 am

I am trying to do a backup restoration to Amazon EC2. I have the following command to create a disk configuration

Code: Select all

$config = New-VBRAmazonEC2DiskConfiguration -DiskName "c" -Include -DiskType "{{ disk_type }}"
then I try to start the restoration with the command

Code: Select all

Start-VBRVMRestoreToAmazon -RestorePoint $restorepoint -Region $region -LicenseType  "{{ license_type }}" -InstanceType $instance -VMName "{{ vm_name }}" -DiskConfiguration $config -VPC $vpc -SecurityGroup $sgroup -Subnet $subnet
this fails with the error "Failed to find a disk with the specified name". The specified disk name however exist. What could be resulting to this??

veremin
Product Manager
Posts: 17070
Liked: 1475 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Failed to find a disk with the specified name

Post by veremin » Jul 05, 2019 12:54 pm

You should include there name of virtual disk, not name of guest volume.

Check the screenshots here.

Thanks!

esir
Novice
Posts: 8
Liked: never
Joined: Mar 29, 2019 2:52 pm
Full Name: Esir Kings
Contact:

Re: Failed to find a disk with the specified name

Post by esir » Jul 05, 2019 1:12 pm

Thank you a lot for this.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests