-
Notifications
You must be signed in to change notification settings - Fork 226
Description
SqlSetup: Installing with Service Account Permissions Required
ISSUE DESCRIPTION (this template):
When using PsDscRunAsCredential with SQL2017 I had to add user to domain admins. I am certain it does not need this level of permissions, but I am trying to find the bare perms needed. It used to work fine with sql2014, but sql2017 is failing until I added the service account to domain admins.
The DSC configuration that is using the resource (as detailed as possible)
SqlSetup SqlServerSetup {
BrowserSvcStartupType = 'Automatic'
Features = $environmentNode.sqlInstallFeatures
InstallSharedDir = $roleNode.installSharedDir
InstallSharedWOWDir = $roleNode.installSharedWowDir
InstallSQLDataDir = $roleNode.installSqlDataDir
InstanceName = $environmentNode.sqlInstanceName
InstanceDir = $roleNode.sqlInstanceDir
SAPWd = $sqlSaAccountCreds
SecurityMode = $roleNode.securityMode
PsDscRunAsCredential = $SQLServiceCreds
SourcePath = $roleNode.sourcePath
SQLBackupDir = $roleNode.sqlBackupDir
SQLCollation = $roleNode.sqlCollation
AgtSvcAccount = $SQLServiceCreds
SQLSvcAccount = $SQLServiceCreds
SQLSysAdminAccounts = $environmentNode.sqlSysAdminAccounts
SQLTempDBDir = $roleNode.sqlTempDbDir
SQLTempDBLogDir = $roleNode.sqlTempDbLogDir
SQLUserDBDir = $roleNode.sqlUserDbDir
SQLUserDBLogDir = $roleNode.sqlUserDbLogDir
UpdateSource = $roleNode.updateSource
UpdateEnabled = $roleNode.updateEnabled
SuppressReboot = $False
ForceReboot = $False
}
Version of the operating system and PowerShell the target node is running
Windows 2016 with PowerShell 5
SQL Server edition and version the target node is running
en_sql_server_2017_developer_x64_dvd_11296168.iso
What SQL Server PowerShell modules, and which version, are present on the target node.
AzureRM.Sql 4.3.0 C:\Program Files\WindowsPowerShell\Modules\AzureRM.Sql\4.3.0\AzureRM.Sql.psd1
SqlServer 20.0 C:\Program Files\WindowsPowerShell\Modules\SqlServer\SqlServer.psd1
SQLASCMDLETS 2.0 C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\SQLASCMDLETS\SQLASCMDLETS.psd1
SQLPS 1.0 C:\Program Files (x86)\Microsoft SQL Server\130\Tools\PowerShell\Modules\SQLPS\SQLPS.psd1
SQLPS 14.0 C:\Program Files (x86)\Microsoft SQL Server\140\Tools\PowerShell\Modules\SQLPS\SQLPS.psd1
Version of the DSC module you're using, or write 'dev' if you're using current dev branch
SqlServerDsc 10.0.0.0 C:\Program Files\WindowsPowerShell\Modules\SqlServerDsc\SqlServerDsc.psd1