Skip to content

Commit

Permalink
Fix issue with MachineLearning (do Install-DbaInstance)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjordan committed Mar 31, 2024
1 parent 86b3f3d commit a2d8fcd
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 a2d8fcd

Please sign in to comment.