Put params in correct order

This commit is contained in:
Wes Carroll
2020-06-11 16:34:04 -04:00
parent 363b6e727c
commit 2d453ef608
2 changed files with 14 additions and 10 deletions
+12 -8
View File
@@ -11,6 +11,12 @@ function Connect-ZertoServer {
[ValidateNotNullOrEmpty()]
[Alias("server", "zvm")]
[string]$zertoServer,
[Parameter(
Mandatory,
HelpMessage = "Valid credentials to connect to the Zerto Management Server",
Position = 1
)]
[System.Management.Automation.PSCredential]$credential,
[Parameter(
HelpMessage = "Zerto Virtual Manager management port. Default value is 9669."
)]
@@ -18,17 +24,15 @@ function Connect-ZertoServer {
[ValidateRange(1024, 65535)]
[Alias("port")]
[string]$zertoPort = "9669",
[Parameter(
Mandatory,
HelpMessage = "Valid credentials to connect to the Zerto Management Server",
Position = 1
)]
[System.Management.Automation.PSCredential]$credential,
[switch]$returnHeaders,
[Parameter(
HelpMessage = "Use this switch to indicate that you would like the module to take care of auto re-authorization and reconnection to the ZVM should the token expire. This option will cache your PSCredential object to be reused"
)]
[switch]$AutoReconnect
[switch]$AutoReconnect,
[Parameter(
HelpMessage = "Use this switch to return the headers to a specified variable or to the default output."
)]
[switch]$returnHeaders
)
begin {
+2 -2
View File
@@ -13,8 +13,8 @@ Establishes a connection to a ZVM.
## SYNTAX
```
Connect-ZertoServer [-zertoServer] <String> [-credential] <PSCredential> [-zertoPort <String>] [-returnHeaders]
[<CommonParameters>]
Connect-ZertoServer [-zertoServer] <String> [-credential] <PSCredential> [-zertoPort <String>] [-AutoReconnect]
[-returnHeaders] [<CommonParameters>]
```
## DESCRIPTION