Skip to content

Commit

Permalink
Install-DbaInstance - Fix issue with MachineLearning (#9312)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan authored Apr 11, 2024
1 parent 4d47bd6 commit c671a9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/Install-DbaInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ function Install-DbaInstance {
foreach ($fd in $featureDef) {
if (($fd.MinimumVersion -and $canonicVersion -lt [version]$fd.MinimumVersion) -or ($fd.MaximumVersion -and $canonicVersion -gt [version]$fd.MaximumVersion)) {
# exclude Default, All, and Tools, as they are expected to have SSMS components in some cases
if ($f -notin 'Default', 'All', 'Tools') {
# exclude MachineLearning, as not all components are needed based on version
if ($f -notin 'Default', 'All', 'Tools', 'MachineLearning') {
Stop-Function -Message "Feature $f($($fd.Feature)) is not supported on SQL$Version"
return
}
Expand Down

0 comments on commit c671a9e

Please sign in to comment.