Skip to content

Unable to Apply SQL Server Updates when /ACTION = INSTALL #462

Closed
@aMeish

Description

@aMeish

Describe the Bug

When installing SQL Server, flag for [ /UpdateEnabled = FALSE ] even when our scripts set to TRUE

Expected Behavior

'UpdateEnabled' => 1: when installing SQL, any CUs provided will be applied as part of install process.
Now, with updates for SQL 2022, 'UpdateEnabled' => 1 automatically defaults to 'UpdateEnabled' =>FALSE

Steps to Reproduce

We created an in-house SQL installation process using Puppet where 'UpdateEnabled' => 1 is the default for all SQL installations. I don't know Puppet well enough to explain how to reproduce the error but 'UpdateEnabled' flag can be added under sqlserver_instance::install_switches

Environment

  • Version: v3.3.0 and above
  • Platform Windows Server 2019

Additional Context

In the following files, [ 'UpdateEnabled' = FALSE ] is default setting for all SQL installs:

if action == 'install'
cmd_args << '/UPDATEENABLED=False'
cmd_args << '/UPDATEENABLED=False' if action == 'install'

Can these lines be removed?
If not, why were they added for v3.3.0+?
Previous versions allow for 'UpdateEnabled' to be modified and the update did work successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions