-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
Get-/Set-DbaNetworkConfiguration - New commands for managing network configuration of instance #7376
Conversation
How to use the commands:
|
I like it! Can we cover 1-3 common scenarios in the params for Set-DbaNetworkConfiguration? Like -TCPPort or something? Open to the answer being no. |
Oh, I just realized this has the |
I can rewrite this - just wanted to play a bit with that syntax style. |
Hooray, all tests are green! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpomfret the test for these commands should be included in the service_restart
list so they do not adversely affect the other test groups since they change the network configuration of the instance in Appveyor.
Hi @wsmelton : Thanks for the review. Next time you can just say: "Grab a dictionary and have a look at protocol" - would save you a lot of time. I accepted all of you changes, thank you very much. |
Let me copy that here: These commands use Invoke-ManagedComputerCommand with -ArgumentList, so we have to make sure that the change from [string[]] to [object[]] has no negative effect. This command needed to be changed, see next commit: |
Thanks again Shawn for the hint, good we found this before the rollout. |
No problems from me for reusing code for network config in other commands. I'd say rewrite them all to use the get network command if it fits and simplifies the other commands; gives us one place to manage it instead of across all of them. This PR can be released first though, and then PR(s) the changes for the other commands. |
agreed, will be able to merge then can create another PR 🙇🏼 Thank you both! |
So yes, this PR can be merged, I have stopped working on this. |
Type of Change
Purpose
General commands that get or set the network configuration like SQL Server Configuration Manager does.
At the moment, this is just a first concept and I would like to have feedback about it.