-
Notifications
You must be signed in to change notification settings - Fork 225
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
BREAKING CHANGE: SqlServerNetwork: Does not enable the IPs for the protocol #339
Comments
Done some work in this resource now to get tests done for it so it easier to make changes to the resource. I saw that today the resource only supports the IP address group 'IPAll'. I think we need to add a new parameter Description on each property in this article (for when this is being worked on): Dumping some code here to get some test data out to help when this is being worked on later. $version = '13'
$applicationDomainObject = [System.AppDomain]::CreateDomain('xSQLServerNetwork')
$applicationDomainObject.Load("Microsoft.SqlServer.Smo, Version=$version.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") | Out-Null
$applicationDomainObject.Load("Microsoft.SqlServer.SqlWmiManagement, Version=$version.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91") | Out-Null
$mangedComputerObject = new-object Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer
$mangedComputerObject.ServerInstances['SQL2016'].ServerProtocols['Tcp'].IPAddresses | Select name
$mangedComputerObject.ServerInstances['SQL2016'].ServerProtocols['Tcp'].IPAddresses['IP1'].IPAddressProperties | Select name
[System.AppDomain]::Unload($$applicationDomainObject) |
I'm not sure, but I think I've covered this in my PR: #1045 |
This is related to issue #14, see the #339 (comment) and in particular the mention of changing ProtocolName to a Key. |
I'm not sure this will work 100%:
The reason being that we won't know what IP is assigned to which key. SQL Server will pick up the IPs for all NICs on the server as it seems them...which you don't know what that order is until the installation is completed. It would likely be best to have it be a string value and then try and match the IP itself as that would be known. |
That suggestion sounds promising. We don't want to write over any group, or getting duplicate IP addresses in two groups. |
@claudiospizzi is right, this is being worked on in PR #1045, and it looks like it is what @wsmelton suggest too? |
Details of the scenario you try and problem that is occurring:
The ability to actually enable the IPs are not available, or not being done in the current resource. TCP/IP protocol is enabled on the server, but the actual IP
The DSC configuration that is using the resource (as detailed as possible):
$AllNodesSqlPort
is set to'1433'
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
OS: Window Server 2012 R2
SQL Server: SQL Server 2014 w/ SP1 x64
PowerShell:
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
The text was updated successfully, but these errors were encountered: