-
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
SqlRole resource incorrect documentation or bug #1592
Comments
|
I am having the exact same problem using the 14.1 version, in my case I have not specified Here is the relevant part of my code:
And I am getting the result:
|
One more note, I tried adding |
I see the problem, |
- SqlRole - Fixed the ServerName parameter to work with default value of $env:COMPUTERNAME (issue #1592).
@cmcapellan Great catch! |
I will release a new version tomorrow that will fix this. |
Details of the scenario you tried and the problem that is occurring
I am trying to add new users to the role, but got:
Failed to invoke DSC Test method: Cannot validate argument on parameter 'ServerName'. The argument is null or empty. Provide an argument that is not null or empty and then try the command again.
Verbose logs showing the problem
Suggested solution to the issue
in documentation ServerName is not mandatory
The DSC configuration that is used to reproduce the issue (as detailed as possible)
SQL Server edition and version the target node is running
Microsoft SQL Server 2017 (RTM-CU20) (KB4541283) - 14.0.3294.2 (X64) Mar 13 2020 14:53:45 Copyright (C) 2017 Microsoft Corporation Developer Edition (64-bit) on Windows Server 2019 Standard 10.0 (Build 17763: ) (Hypervisor)
SQL Server PowerShell modules present on the target node
Name Version Path
SQLPS 14.0 C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules\SQLPS\SQLPS.psd1
The operating system the target node is running
OsName : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
PSVersion 5.1.17763.1007
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.1007
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module that was used
Name Version Path
SqlServerDsc 14.0.0 C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\14.0.0\SqlServerDsc.psd1
SqlServerDsc 13.0.0.0 C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\13.0.0.0\SqlServerDsc.psd1
The text was updated successfully, but these errors were encountered: