commands

^

Update-DbaBuildReference

Author Simone Bizzotto (@niphold) , Friedrich Weinmann (@FredWeinmann)
Availability Windows, Linux, macOS

 

Synopsis

Updates the local reference looking online for the most up to date.

Description

This function updates the local json files containing all the infos about SQL builds. It uses the setting 'assets.sqlbuildreference' to fetch it. To see your current setting, use Get-DbatoolsConfigValue -Name 'assets.sqlbuildreference'

Syntax

Update-DbaBuildReference
    [-EnableException]
    [<CommonParameters>]

 

Examples

 

Example: 1
PS C:\> Update-DbaBuildReference

Looks online if there is a newer version of the build reference

Optional Parameters

-EnableException

By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message. This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting. Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.

Alias
Required False
Pipeline false
Default Value False

 

Want to see the source code for this command? Check out Update-DbaBuildReference on GitHub.
Want to see the Bill Of Health for this command? Check out Update-DbaBuildReference.