-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SqlAGReplica: Get-TargetResource
does not return key properties when absent
#1822
Labels
enhancement
The issue is an enhancement request.
Comments
johlju
added
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
in progress
The issue is being actively worked on by someone.
and removed
help wanted
The issue is up for grabs for anyone in the community.
labels
Dec 16, 2022
9 tasks
johlju
added a commit
that referenced
this issue
Dec 16, 2022
- SqlAgReplica - Converted unit test to Pester 5. - No longer tries to enforce EndpointHostName when it is not part of the configuration (issue #1821). - Now `Get-TargetResource` always returns values for the properties `Name` and `AvailabilityGroupName` (issue #1822). - Now `Test-TargetResource` no longer test properties that cannot be enforced (issue #1822).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
The resource does not return the key properties of
Name
andAvailabilityGorupName
when the current state is Absent. This result in unneccassry logic inTest-TargetResource
.SqlServerDsc/source/DSCResources/DSC_SqlAGReplica/DSC_SqlAGReplica.psm1
Lines 675 to 676 in d5692e2
Verbose logs
DSC configuration
Suggested solution
The key properties
Name
andAvailabilityGorupName
should always be returned from theGet-TargetResource
.Test-TargetResource
should not evaluate those two properties.SQL Server edition and version
SQL Server PowerShell modules
Operating system
PowerShell version
SqlServerDsc version
The text was updated successfully, but these errors were encountered: