elasticsearchazure-devopsazure-devops-server-2020

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


Solution

  • Azure DevOps only supports the modified version of Elastic Search it ships with. For Azure DevOps Server 2019 and 2020 that's elastic search v6.2.

    With the log4shell vulnerability found in log4j, it's likely the next update pack for Azure DevOps Server 2020 and the next major version of Azure DevOps Server, 2022, will ship with a much more recent version of Elastic Search.

    Manually upgrading Elastic Search to a version other than the one shipping with your version of Azure DevOps Server is not supported, undocumented and will likely cause problems.

    If you're trying to protect yourself against log4shell, you can find guidance here:

    Official patches just got dropped: