PowerShell script exchange
Post Reply
andrefaria
Novice
Posts: 7
Liked: 1 time
Joined: Mar 19, 2021 3:41 pm
Full Name: André M. Faria
Contact:

Start-VBRQuickMigration command has a mistyped parameter

Post by andrefaria »

Hello,

I am doing a script and realized that the "-DeleteSorceVmFiles" parameter was typed wrongly in documentation of "Start-VBRQuickMigration" command https://helpcenter.veeam.com/docs/backu ... ml?ver=110.

I've checked it and it its wrong in PowerShell Help too, and also for my surprise it work with the wrong parameter.

Code: Select all

-DeleteSorceVmFiles

Code: Select all

SYNTAX
    Start-VBRQuickMigration -Entity <CViVmItem[]> -Server <CHost> [-ResourcePool <CViResourcePoolItem>] [-Datastore <CViDatastoreItem>] [-Folder <CViFolderItem>] 
    [-StoragePolicy <VBRViStoragePolicy>] [-SourceProxy <CViProxy[]>] [-TargetProxy <CViProxy[]>] [-ForceVeeamQM <SwitchParameter>] [-DeleteSorceVmFiles <SwitchParameter>] 
    [-RunAsync <SwitchParameter>] [-Force <SwitchParameter>] [<CommonParameters>]
 
I've checked another command the "Start-VBRViInstantRecoveryMigration" and it's fine https://helpcenter.veeam.com/docs/backu ... ml?ver=110

I will open a ticket tomorrow and get back here to edit.

Veeam Backup & Replication BUILD 11.0.1.1261 P20211211
Mildur
Product Manager
Posts: 10277
Liked: 2746 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Start-VBRQuickMigration command has a mistyped parameter

Post by Mildur » 1 person likes this post

Hi Andre

No support ticket required. Thanks for letting us know.

Correcting the typo in the parameter won't be possible that easy. It would break a lot of existing scripts.
But we will check what we can do for a future release.

Best,
Fabian
Product Management Analyst @ Veeam Software
oleg.feoktistov
Veeam Software
Posts: 2021
Liked: 673 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Start-VBRQuickMigration command has a mistyped parameter

Post by oleg.feoktistov » 1 person likes this post

Hi Andre,

Thanks for your feedback. Yes, unfortunately, there is quite a set of cmdlets and classes with typos in their parameter and property names. Most of them are old though (Start-VBRQuickMigration is one of them). With newer types we have been doing our best to review the spelling more thoroughly. I do think, however, that there is always a space for improvement, but not to the point where we need to create a new parameter with the same purpose as the older one just for the sake of correct spelling. It's just too much of an overhead to apply deprecation workflows here and make users rewrite their existing scripts.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 41 guests