SqlAGReplica: fix SeedingMode check in Test-TargetResource#2099
SqlAGReplica: fix SeedingMode check in Test-TargetResource#2099johlju merged 1 commit intodsccommunity:mainfrom
Conversation
|
@cai-n Since there is no issue linked to this PR, can you explain the need for this change and why it is necessary in your scenario? 🙂 |
There was a problem hiding this comment.
Pull Request Overview
This pull request updates the changelog to document fixes for the SeedingMode existence condition in both SqlAG and SqlAGReplica.
- Updated changelog entry for SqlAG to clarify the fix.
- Updated changelog entry for SqlAGReplica to clarify the fix.
Files not reviewed (4)
- source/DSCResources/DSC_SqlAG/DSC_SqlAG.psm1: Language not supported
- source/DSCResources/DSC_SqlAGReplica/DSC_SqlAGReplica.psm1: Language not supported
- tests/Unit/DSC_SqlAG.Tests.ps1: Language not supported
- tests/Unit/DSC_SqlAGReplica.Tests.ps1: Language not supported
|
Hi, I was trying to change the a replica's seeding mode from automatic to manual and noticed that it didn't update the replica, but it worked if it was the other way around |
|
Thank you. Have you tested that your change actually makes it possible to switch between both? Also, unrelated to your PR and does need to be resolved here, but looking at this now, isn't this a bug: If a Availability Group has Automatic as a seeding mode, and if the user does not provide the Seeding Mode parameter in the configuration, then the resource will change to Manual on the Availability Group because of the default value that will be used and enforced. 🤔 |
|
I've tried to change it from manual to automatic and back to manual and it updated correctly. |
|
You are correct with the default value. Thank you. This is also handled with |
johlju
left a comment
There was a problem hiding this comment.
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @cai-n)
|
Waiting for the tests to pass, then I merge. |
|
@cai-n thank you for this! 🙇♂️ |
Pull Request (PR) description
SqlAGSqlAGReplicaThis Pull Request (PR) fixes the following issues
None
Task list
file CHANGELOG.md. Entry should say what was changed and how that
affects users (if applicable), and reference the issue being resolved
(if applicable).
This change is