'Updating ElasticSearch on Azure DevOps

i am trying to upgrade ES on my Azure DevOps 2020, ES is installed on a separate Server and therefore cannot be updated, it has to be reinstalled and i am following the instructions from microsoft. i first run the uninstall command Configure-TFSSearch.ps1 -Operation remove then the install command provided on the page above as well but the version being installed is the same as before, the old unsupported one. I looked into the Search Service Package folder and the files there are related to the current old version, i tried copying the elasticsearch installation file to the search service package folder and running the script again but it said

[ERROR]: Elasticsearch does not exist at: C:\Program Files\Azure DevOps Server 2020\Search\zip\modules\..\elasticsearchv6.2.zip

So it is looking for the the version 6.2 where i want to install the latest 7.16.3v. How do i get the search service package files related to the latest ES version.

I have also tried this and this with no luck. any help please. thx



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source