From bf31ccd5fbc2ebdcdf8b7d080800d1e5fe091ee8 Mon Sep 17 00:00:00 2001 From: Troy Ault Date: Thu, 18 Aug 2016 09:04:05 -0400 Subject: [PATCH] Adding Mandatory to Server on Get-TargetResource --- DSCResources/MSFT_xSQLAlias/MSFT_xSQLAlias.psm1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/DSCResources/MSFT_xSQLAlias/MSFT_xSQLAlias.psm1 b/DSCResources/MSFT_xSQLAlias/MSFT_xSQLAlias.psm1 index bfba3ee7f4..12558f35f1 100644 --- a/DSCResources/MSFT_xSQLAlias/MSFT_xSQLAlias.psm1 +++ b/DSCResources/MSFT_xSQLAlias/MSFT_xSQLAlias.psm1 @@ -11,7 +11,12 @@ function Get-TargetResource [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [System.String] - $Name + $Name, + + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [System.String] + $ServerName ) Write-Verbose -Message 'Get-TargetResource' @@ -64,6 +69,7 @@ function Set-TargetResource $Protocol, [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] [System.String] $ServerName, @@ -180,6 +186,7 @@ function Test-TargetResource $Protocol, [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] [System.String] $ServerName,