-
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: User 'sa' is not allowed to be dropped from role sysadmin #550
Comments
This is by design by SQL Server (it seems). When using parameter We could add a note to the resource description that this is the case. |
Working on this one. |
- SqlRole - Major overhaul of resource - BREAKING CHANGE: Removed decision making from get-TargetResource; this prevented a simple solution for issue #550. it now just tels if a role exists or not. And what members are in that role. MembersToInclude and MembersToExclude now always return $null - Added sanitize function (Get-CorrectedMemberParameters) to make it so for the sysadmin role SA does not get altered (issue #550) - added lots of tests.
Details of the scenario you tried and the problem that is occurring:
I have the following 2 DSC Resource statements one works and the other does not. The first successfully adds the account to the securityadmin SQL role and the second fails to add the same account to the sysadmin SQL role.
`
The DSC configuration that is using the resource (as detailed as possible):
Error Message for Set_sysadmin_Roles4_FarmSetup
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
I am using SQL 2016 on Windows Server 2012 R2
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
xSQLServerRole v 7.0.0.0
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
SQLServer 7.0.0.0
The text was updated successfully, but these errors were encountered: