Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script for checking if agents support upgrade to v4 #4995

Merged
merged 6 commits into from
Sep 24, 2024

Conversation

aleksandrlevochkin
Copy link
Contributor

@aleksandrlevochkin aleksandrlevochkin commented Sep 17, 2024

WI
AB#2211128

Description

Added a PS script for checking if agents in an organization can be upgraded from v3 to v4. Based on the previous v2 -> v3 migration script

Example
Running the script like this:

.\QueryAgentPoolsForCompatibleOSV4.ps1 -OrganizationUrl $ORG_URL -Token $PAT -Force

produces the following output:

script

Please, note that in the screenshot above the WSL version of Ubuntu is used. Even though the version itself is supported, the output of uname -a is different from a regular Ubuntu, that is why the validation does not pass in this case.

@aleksandrlevochkin aleksandrlevochkin added the misc Miscellaneous Changes label Sep 17, 2024
@aleksandrlevochkin aleksandrlevochkin marked this pull request as ready for review September 17, 2024 08:59
@aleksandrlevochkin aleksandrlevochkin requested review from a team as code owners September 17, 2024 08:59
@geekzter
Copy link
Member

@aleksandrlevochkin Is there a reason to keep the v3 script around? I think we should encourage customers to use the v4 agent.

@aleksandrlevochkin
Copy link
Contributor Author

@geekzter Thanks for the point, I refactored the PR to output v2/v3 -> v4 migration info all in one script

@kirill-ivlev kirill-ivlev merged commit 57ad896 into master Sep 24, 2024
20 checks passed
@tristanbarcelon
Copy link

tristanbarcelon commented Oct 29, 2024

@aleksandrlevochkin and @kirill-ivlev, can the v4 builds be used in production or would you suggest waiting for v4 to be marked for release before we upgrade v3 agents to it? In the Azure Devops organizational settings page, it is possible to go to both Agent Pools and Deployment Pools to drill down to specific agents and upgrade them. However, the rest api endpoint for them are not documented. Would it be possible for you to provide a -Upgrade switch to the script that would initiate a call to the api endpoint used by the page to update agents if upgrade is supported?

@aleksandrlevochkin
Copy link
Contributor Author

@tristanbarcelon The v4 agent is generally the same as v3, except it runs on .NET 8 instead of .NET 6. Thank you for the proposal regarding the update switch, we will consider it. I tried looking it up, but I am also not aware of the API endpoint for initiating an agent update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
misc Miscellaneous Changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants