dataplat / dbatools

🚀 SQL Server automation and instance migrations have never been safer, faster or freer
https://dbatools.io
MIT License
2.39k stars 787 forks source link

Install-DbaFirstResponderKit is installing version 8.18, which is old #9390

Closed ReeceGoding closed 2 weeks ago

ReeceGoding commented 2 weeks ago

Verified issue does not already exist?

I have searched and found no existing issue

What error did you receive?

Get-InstalledModule dbatools

reports that I'm on dbatools version 2.1.17.

On my server,

DECLARE @VersionOutput VARCHAR(30), @VersionDateOutput DATETIME;
EXEC sp_BlitzIndex 
    @Version = @VersionOutput OUTPUT, 
    @VersionDate = @VersionDateOutput OUTPUT,
    @VersionCheckMode = 1;
SELECT
    @VersionOutput AS Version, 
    @VersionDateOutput AS VersionDate;

reports that I'm on version 8.18 of the First Responder Kit. The latest release is version 8.20.

After running

Install-DbaFirstResponderKit -SqlInstance MyBox

The above SQL reports exactly the same. The printed output also reports that we're installing sp_BlitzQueryStore, which is pretty odd given that I'm pretty sure it's no longer in the installer.

Overall, it appears that Install-DbaFirstResponderKit isn't installing the newest version. What have I stupidly missed?

Steps to Reproduce

As above.

Please confirm that you are running the most recent version of dbatools

Yep. Get-Module dbatools | Select -ExpandProperty Version confirms it.

Other details or mentions

No response

What PowerShell host was used when producing this error

Windows PowerShell (powershell.exe)

PowerShell Host Version

I doubt that's relevant.

SQL Server Edition and Build number

I doubt that's relevant.

.NET Framework Version

I doubt that's relevant.

andreasjordan commented 2 weeks ago

The source is cached. Please use -Force to download latest.

ReeceGoding commented 2 weeks ago

@andreasjordan I'm doing this wrong, aren't I? The below seemingly doesn't change what gets installed.

Import-Module dbatools -Force
Install-DbaFirstResponderKit -SqlInstance MyBox
andreasjordan commented 2 weeks ago

Sorry, was on mobile.

Please use:

Import-Module dbatools
Install-DbaFirstResponderKit -SqlInstance MyBox -Force
ReeceGoding commented 2 weeks ago

Perfect. Thanks.