|Author||Simone Bizzotto (@niphold) , Friedrich Weinmann (@FredWeinmann)|
|Availability||Windows, Linux, macOS|
Updates the local reference looking online for the most up to date.
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'
Update-DbaBuildReference [-EnableException] [<CommonParameters>]
PS C:\> Update-DbaBuildReference
Looks online if there is a newer version of the build reference
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.