-
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
SqlRSSetup: Document that the properties ProductKey and Edition is mutually exclusive #1386
Comments
Neither is mandatory because you can use either to install. Edition to install a free edition, and the ProductKey to install a licensed edition. This could be documented better, I label this issue as documentation and help wanted so that someone in the community can resolve this in the documentation. |
This is my code but it fails asking for Product key and version |
When you compile the configuration it will not ask for additional parameters. You need to provide them in the configuration with the rest of the parameters. See the example here https://github.com/PowerShell/SqlServerDsc/blob/dev/Examples/Resources/SqlRSSetup/1-InstallReportingServices.ps1 |
that is the same as my code except for the edition parameter. The edition parameter is not a required parameter so not sure why it is complaining |
The Edition or ProductKey parameter is a mutually exclusive mandatory parameter, it is just not a mandatory parameter in the schema. The code is throwing an error saying you need to provide either Edition or ProductKey, right? |
Yes both |
- SqlServerDsc - Remove the file `.github/CONTRIBUTION.md` as it no longer filled any purpose as GitHub will find the CONTRIBUTION.md in the root folder directly now (issue #1227). - The documentation in CONTRIBUTING.md has been somewhat updated. - Update documentation around design pattern for accounts that does not use passwords (issue #378) and (issue #1230). - Updating the Integration Test README.md to better explain what the integration tests for SqlSetup, SqlRSSetup, and SqlRS does (issue #1315). - SqlAGReplica - Update documentation with a requirement for SqlServer in certain circumstances (issue #1033). - SqlRSSetup - There was a typo in the error message that was thrown when not passing either the `Edition` or `ProductKey` that could be misleading (issue #1386). - Updated the parameter descriptions for the parameters `Edition` and `ProductKey` that they are mutually exclusive (issue #1386).
Details of the scenario you tried and the problem that is occurring
When i run it the script wants the edition and Product key. It does not state they are mandatory fields.
Verbose logs showing the problem
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
SQL Server edition and version the target node is running
Sql 2016
SQL Server PowerShell modules present on the target node
5.1
The operating system the target node is running
windows server 2016
Version and build of PowerShell the target node is running
N/A
Version of the DSC module that was used ('dev' if using current dev branch)
n/a
The text was updated successfully, but these errors were encountered: