PowerShell script exchange
Post Reply
lrhazi
Enthusiast
Posts: 94
Liked: 3 times
Joined: Jan 03, 2017 8:15 pm
Full Name: Mohamed Lrhazi
Contact:

About Start-VBRVMRestoreToAmazon

Post by lrhazi »

https://helpcenter.veeam.com/docs/backu ... ml?ver=110

The method Start-VBRVMRestoreToAmazon needs a DiskConfiguration parameter, which seems to assume there is only one disk???

What to do when we have more than one disk?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: About Start-VBRVMRestoreToAmazon

Post by oleg.feoktistov » 1 person likes this post

Does it though? In the article you shared it is stated in the cmdlet signature that -DiskConfiguration parameter accepts VBRAmazonEC2DiskConfiguration[], where "[]" is C# notation for arrays. Another thing is that in the parameter description it is not mentioned and should be fixed. I sent the feedback on that to the technical writers team. Thanks!
lrhazi
Enthusiast
Posts: 94
Liked: 3 times
Joined: Jan 03, 2017 8:15 pm
Full Name: Mohamed Lrhazi
Contact:

Re: About Start-VBRVMRestoreToAmazon

Post by lrhazi »

Thanks Oleg.

Are you saying it is pretty clear that an array is expected? :)
lrhazi
Enthusiast
Posts: 94
Liked: 3 times
Joined: Jan 03, 2017 8:15 pm
Full Name: Mohamed Lrhazi
Contact:

Re: About Start-VBRVMRestoreToAmazon

Post by lrhazi »

and if an array is expected... what do its values mean? first entry is what? and second ?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: About Start-VBRVMRestoreToAmazon

Post by oleg.feoktistov »

I'm saying that it's obscure due to the discrepancy between parameter description and parameter signature defined in the article.
However, the actual cmdlet parameter can work with an array, as defined in the cmdlet signature. That's why I submitted a feedback to our tech writers.
Each value created with New-VBRAmazonEC2DiskConfiguration cmdlet and passed to -DiskConfiguration parameter of the restore cmdlet corresponds to the disk specification created in Restore to Amazon Wizard on this step. Thanks!
lrhazi
Enthusiast
Posts: 94
Liked: 3 times
Joined: Jan 03, 2017 8:15 pm
Full Name: Mohamed Lrhazi
Contact:

Re: About Start-VBRVMRestoreToAmazon

Post by lrhazi »

Thank you so much!
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests