PowerShell script exchange
-
esir
- Novice
- Posts: 8
- Liked: never
- Joined: Mar 29, 2019 2:52 pm
- Full Name: Esir Kings
-
Contact:
Post
by esir »
this post
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: 20400
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
-
Contact:
Post
by veremin »
this post
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:
Post
by esir »
this post
Thank you a lot for this.
Users browsing this forum: No registered users and 8 guests