Replies: 2 comments 15 replies
-
|
Can you dump in the |
Beta Was this translation helpful? Give feedback.
-
This sounds like the LCM can't run/use the resource. I would look into that first to make sure the resource works in your environment, then switch to DSCv3. Note that
As @Gijsreyn said, the stream issue is (there is an open issue that tracks it), but that said you should be able to workaround it by modifying any line that output either a warning or verbose message (normally no verbose messages should be output though). But we still don't know if this is due to the stream issue, it can be that you get an error that are not surfacing due to the stream issue, and by making sure it runs in LCM you could possible find that cause. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With an SQLServer2022 installation I try to set permissions with dscV3. The script looks like:
{ "metadata": { "description": "SQL Server 2022 Installation on V-MSSQL177.xxx", "generated": "2025-11-04T15:42:28Z", "author": "Ansible DSC Automation", "target": "V-MSSQL177.xxx", "instance": "MSSQLSERVER" }, "resources": [ { "type": "SqlServerDsc/SqlSetup", "name": "InstallSQLServer2022", "properties": { "InstanceName": "MSSQLSERVER", "Features": "SQLENGINE,FULLTEXT", "SourcePath": "C:\\Temp\\SQLInst", "SQLSysAdminAccounts": ["xxx", "xxx"], "InstallSharedDir": "C:\\Program Files\\Microsoft SQL Server", "InstallSharedWOWDir": "C:\\Program Files (x86)\\Microsoft SQL Server", "InstanceDir": "F:\\SQLSYSTEM\\Microsoft SQL Server", "InstallSQLDataDir": "S:\\MSSQL\\Data", "SQLUserDBDir": "D:\\MSSQL\\Data", "SQLUserDBLogDir": "L:\\MSSQL\\Data", "SQLTempDBDir": "T:\\MSSQL\\Data", "SQLTempDBLogDir": "T:\\MSSQL\\Data", "SQLBackupDir": "E:\\MSSQL\\Backup", "SecurityMode": "SQL", "SAPwd": { "userName": "sa", "password": "xxx" }, "SQLSvcAccount": { "userName": "xxx", "password": "xxx" }, "AgtSvcAccount": { "userName": "xxx", "password": "xxx" }, "BrowserSvcStartupType": "Automatic", "UpdateEnabled": "True", "ForceReboot": false, "SuppressReboot": true } }, { "type": "SqlServerDsc/SqlPermission", "name": "GrantSystemPermissions", "properties": { "ServerName": "V-MSSQL177.xxx", "InstanceName": "MSSQLSERVER", "Name": "NT AUTHORITY\\SYSTEM", "Credential": { "userName": "mSQLDSCinstall", "password": "xxx" }, "Permission": [ { "State": "Grant", "Permission": [ "AlterAnyAvailabilityGroup", "ViewServerState", "ConnectSql" ] }, { "State": "GrantWithGrant", "Permission": [] }, { "State": "Deny", "Permission": [] } ] }, "dependsOn": ["[resourceId('SqlServerDsc/SqlSetup', 'InstallSQLServer2022')]" ] }, ], "$schema": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.1/config/document.json" }But with this error I just get an zero info error:
2025-11-12T20:57:37.285318Z ERROR Error: JSON: expected value at line 1 column 1I tried to get more infos with verbose but nothing. Just this line. Anybody know this error?
I used SqlServerDsc 17.3.0-preview0018 and also 17.2.0 both with the same error.
Beta Was this translation helpful? Give feedback.
All reactions