From 794f87dbf8fdbc3289e8a56501b967f68095ec10 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Tue, 25 Aug 2020 13:25:22 -0400 Subject: [PATCH] Add helpmessages for each switch --- .../Public/Get-ZertoAzureResource.ps1 | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/ZertoApiWrapper/Public/Get-ZertoAzureResource.ps1 b/ZertoApiWrapper/Public/Get-ZertoAzureResource.ps1 index a30063c..8a6f645 100644 --- a/ZertoApiWrapper/Public/Get-ZertoAzureResource.ps1 +++ b/ZertoApiWrapper/Public/Get-ZertoAzureResource.ps1 @@ -4,82 +4,90 @@ function Get-ZertoAzureResource { param ( [Parameter( Mandatory, - HelpMessage = "Name the Azure Site you wish to get the Security Groups.", + HelpMessage = "Name the Azure Site you wish to get the information.", ParameterSetName = "SiteNameSecurityGroup" )] [Parameter( Mandatory, - HelpMessage = "Name the Azure Site you wish to get the Security Groups.", + HelpMessage = "Name the Azure Site you wish to get the information.", ParameterSetName = "SiteNameSubnet" )] [Parameter( Mandatory, - HelpMessage = "Name the Azure Site you wish to get the Security Groups.", + HelpMessage = "Name the Azure Site you wish to get the information.", ParameterSetName = "SiteNameNetwork" )] [Parameter( Mandatory, - HelpMessage = "Name the Azure Site you wish to get the Security Groups.", + HelpMessage = "Name the Azure Site you wish to get the information.", ParameterSetName = "SiteNameVmInstanceType" )] [ValidateNotNullOrEmpty()] [String]$SiteName, [Parameter( Mandatory, - HelpMessage = "Site Identifier of the Azure Site you wish to get the Security Groups.", + HelpMessage = "Site Identifier of the Azure Site you wish to get the information.", ParameterSetName = "SiteIdentifierSecurityGroup" )] [Parameter( Mandatory, - HelpMessage = "Site Identifier of the Azure Site you wish to get the Security Groups.", + HelpMessage = "Site Identifier of the Azure Site you wish to get the information.", ParameterSetName = "SiteIdentifierSubnet" )] [Parameter( Mandatory, - HelpMessage = "Site Identifier of the Azure Site you wish to get the Security Groups.", + HelpMessage = "Site Identifier of the Azure Site you wish to get the information.", ParameterSetName = "SiteIdentifierNetwork" )] [Parameter( Mandatory, - HelpMessage = "Site Identifier of the Azure Site you wish to get the Security Groups.", + HelpMessage = "Site Identifier of the Azure Site you wish to get the information.", ParameterSetName = "SiteIdentifierVmInstanceType" )] [ValidateNotNullOrEmpty()] [String]$SiteIdentifier, [Parameter( Mandatory, - ParameterSetName = "SiteIdentifierSecurityGroup" + ParameterSetName = "SiteIdentifierSecurityGroup", + HelpMessage = "Use this switch to get information about the supported Security Groups" )] [Parameter( Mandatory, - ParameterSetName = "SiteNameSecurityGroup" + ParameterSetName = "SiteNameSecurityGroup", + HelpMessage = "Use this switch to get information about the supported Security Groups" )] [Switch]$SecurityGroup, [Parameter( Mandatory, - ParameterSetName = "SiteIdentifierSubnet" + ParameterSetName = "SiteIdentifierSubnet", + HelpMessage = "Use this switch to get information about the supported Subnets" )] [Parameter( Mandatory, - ParameterSetName = "SiteNameSubnet" + ParameterSetName = "SiteNameSubnet", + HelpMessage = "Use this switch to get information about the supported Subnets" )] [Switch]$Subnet, [Parameter( Mandatory, - ParameterSetName = "SiteIdentifierNetwork" + ParameterSetName = "SiteIdentifierNetwork", + HelpMessage = "Use this switch to get information about the supported Networks (VNets)." )] [Parameter( Mandatory, - ParameterSetName = "SiteNameNetwork" + ParameterSetName = "SiteNameNetwork", + HelpMessage = "Use this switch to get information about the supported Networks (VNets)." )] [Switch]$Network, [Parameter( Mandatory, - ParameterSetName = "SiteIdentifierVmInstanceType" + ParameterSetName = "SiteIdentifierVmInstanceType", + HelpMessage = "Use this switch to get information about the supported Vm Instance Types." )] [Parameter( Mandatory, - ParameterSetName = "SiteNameVmInstanceType" + ParameterSetName = "SiteNameVmInstanceType", + HelpMessage = "Use this switch to get information about the supported Vm Instance Types." )] [Switch]$VmInstanceType )