You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
There is no way to enable the necessary features of the SQL Server #3522
I'm using the WinGet configuration for installing some necessary applications with components by creating a Winget configuration (YAML) file and using that from the Dev Home. I did all of them except the SQL Server features. I'm able to install the SQL server, but I could not enable (Install) the "Full-text search" and "FileStream" features of the SQL Server.
Steps to reproduce
There is my configuration file. The first step is passing but the second is not:
Somehow we should be doing that because a lot of times just installing the SQL Server is not enough to use that without enabling necessary features or changing the configuration.
Note: If there is a way to do that by a PowerShell script, please show me an example of how to call the PowerShell script from the winget Yamle configuration, until implementing (fixing) this functionality. I did not find any thing for that.
Actual behavior
It is failing from the second step without any errors.
Environment
I am using the latest version of WinGet and Windows 11
Reacted by Islom Makhsudov, Durdona, Dalerjon Olimov, Tursunkhuja Norkhojaev, Mahmud Sharipov, Parvina Zulfikarova, Zubaydullo Nematov, Dilshod Komilov, Rahmatillo, Abbos Sidiqov and 8 more
Feature request: Support configuration files. (We might already have this request in another Issue.)
Stephen Gillie (@stephengillie)
Our company has close to 100 software engineers. So, we are planning to use the Dev Home to decrease the setting up the dev environments. As I said, we have prepared the configuration files to install and customize all necessary applications except the MS SQL Server. That means there is still manual work to install the SQL Server.
You already said you have plans to implement this feature. How long do you think it might take?
If it takes more than a week or a month, could you (someone else) show me a workaround until implementing this functionality?
Thanks for explaining your situation and goals. I'm not sure even if this is on our roadmap currently. I'll defer to Demitrius Nelon (@denelon) for the best info about our future feature plans.
Mirolim Majidov (@MirolimMajidov), I did a quick search for Microsoft.SqlServerDsc at the PowerShell gallery. I didn't see any results. Where did you locate that PowerShell module?
There is a DSC Script Resource. The primary thing to be cautious of is to make sure your script is idempotent so it can be run multiple times without causing a failure or other unintended side effects.
@MirolimMajidov, I did a quick search for Microsoft.SqlServerDsc at the PowerShell gallery. I didn't see any results. Where did you locate that PowerShell module?
Thanks for the detailed configuration and repro. This isn't really a WinGet-specific request, so we're going to close it here — but there are concrete paths to unblock the scenario.
Issue summary
After installing SQL Server via Microsoft.WinGet.DSC/WinGetPackage, enabling features like Full-Text Search and FileStream via Microsoft.SqlServerDsc/SqlServerFeature fails silently. The ask is a way to enable SQL Server features from a WinGet Configuration file.
Why this is out of scope for WinGet
WinGet Configuration is a host for DSC resources — it invokes whatever resources you reference and reports their results. Enabling SQL Server features is the responsibility of a DSC resource that knows how to configure SQL Server, not of WinGet itself. The failure here is in the resource layer, not in WinGet's configuration processing.
Recommended paths
Use the appropriate SQL Server DSC resource. Feature enablement (SQLENGINE, FULLTEXT, FileStream, etc.) is handled by the SqlServerDsc module's setup resource (e.g. SqlSetup) rather than a standalone "feature" resource. Behavior, bugs, and enhancement requests for that belong in that module's repo. If a suitable command-based DSC v3 resource for this scenario doesn't exist, authoring one (or filing for it) in the relevant DSC resource project is the right fix.
Interim unblock with a Script resource. Until a resource cleanly covers your case, you can run the SQL Server setup with the desired feature flags from configuration using the Script resource (from PSDscResources), which lets you provide GetScript / TestScript / SetScript. Sketch:
- resource: PSDscResources/ScriptdependsOn:
- sqlServerPackagedirectives:
description: Enable SQL Server featuressettings:
GetScript: "@{ Result = '' }"TestScript: "return $false"SetScript: | # invoke SQL Server setup with the desired features, e.g.: & 'C:\path\to\setup.exe' /q /Action=Install /Features=FULLTEXT /FILESTREAMLEVEL=1 /IAcceptSQLServerLicenseTerms
Since the request is about SQL Server feature configuration via a DSC resource rather than WinGet behavior, closing as not planned.
Activity
stephengillie commentedon Aug 15, 2023
Feature request: Support configuration files. (We might already have this request in another Issue.)
MirolimMajidov commentedon Aug 16, 2023
Stephen Gillie (@stephengillie)
Our company has close to 100 software engineers. So, we are planning to use the Dev Home to decrease the setting up the dev environments. As I said, we have prepared the configuration files to install and customize all necessary applications except the MS SQL Server. That means there is still manual work to install the SQL Server.
You already said you have plans to implement this feature. How long do you think it might take?
If it takes more than a week or a month, could you (someone else) show me a workaround until implementing this functionality?
stephengillie commentedon Aug 17, 2023
Hi Mirolim Majidov (@MirolimMajidov),
Thanks for explaining your situation and goals. I'm not sure even if this is on our roadmap currently. I'll defer to Demitrius Nelon (@denelon) for the best info about our future feature plans.
denelon commentedon Aug 18, 2023
Mirolim Majidov (@MirolimMajidov), I did a quick search for Microsoft.SqlServerDsc at the PowerShell gallery. I didn't see any results. Where did you locate that PowerShell module?
denelon commentedon Aug 18, 2023
There is a DSC Script Resource. The primary thing to be cautious of is to make sure your script is idempotent so it can be run multiple times without causing a failure or other unintended side effects.
MirolimMajidov commentedon Aug 31, 2023
Demitrius Nelon (@denelon) I'm not familiar with the Microsoft.SqlServerDsc, but it seems we can do that with DSC SqlServer script.
denelon commentedon Oct 13, 2023
Johan Ljunggren (@johlju) I'm not familiar with SQL DSC. Do you have any docs or anything we could point a user at?
We could also work on a sample configuration over at Dev Home Sample Configurations.
johlju commentedon Oct 15, 2023
I have no knowledge of how the configuration file mentioned above is used and where the source for
Microsoft.SqlServerDsc/SqlServerFeatureis comig from. Please provide more details. But I know it is not possible to enable features post-install, other than running install again with the correct arguments. The manifest Microsoft.SQLServer.2022.Developer.installer.yaml does not seem to have any argument options at all? A manifest needs to handle all of these arguments in a real scenario: https://learn.microsoft.com/en-us/sql/database-engine/install-windows/install-sql-server-from-the-command-promptThere is DSC resource SqlSetup that can install SQL Server: https://github.com/dsccommunity/SqlServerDsc/wiki/SqlSetup
There are a command (
Install-SqlDscServer) in SqlServerDsc that can install SQL Server using PowerShell: https://github.com/dsccommunity/SqlServerDsc/wiki/Install%E2%80%91SqlDscServerNot sure if this helps anything.
johlju commentedon Oct 15, 2023
There is also a new DSC resource in the works that better work with the latests SQL Server (support more options): dsccommunity/SqlServerDsc#1912
tristanbarcelon commentedon Apr 3, 2025
This is the one I suggest you try: https://www.powershellgallery.com/packages/SqlServerDsc using SqlSetup DSC resource: https://github.com/dsccommunity/SqlServerDsc/wiki/SqlSetup
denelon commentedon Jul 27, 2026
Thanks for the detailed configuration and repro. This isn't really a WinGet-specific request, so we're going to close it here — but there are concrete paths to unblock the scenario.
Issue summary
Microsoft.WinGet.DSC/WinGetPackage, enabling features like Full-Text Search and FileStream viaMicrosoft.SqlServerDsc/SqlServerFeaturefails silently. The ask is a way to enable SQL Server features from a WinGet Configuration file.Why this is out of scope for WinGet
Recommended paths
SqlSetup) rather than a standalone "feature" resource. Behavior, bugs, and enhancement requests for that belong in that module's repo. If a suitable command-based DSC v3 resource for this scenario doesn't exist, authoring one (or filing for it) in the relevant DSC resource project is the right fix.Scriptresource (fromPSDscResources), which lets you provideGetScript/TestScript/SetScript. Sketch:Since the request is about SQL Server feature configuration via a DSC resource rather than WinGet behavior, closing as not planned.
Related
Drafted with the help of GitHub Copilot.