-
Notifications
You must be signed in to change notification settings - Fork 867
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
[Question]: Offline upgrade of Deployment targets #4785
Comments
@hedasp, have you attempted to place the agent zip file on Azure DevOps Server machine? |
Hi @ivanduplenskikh |
@hedasp, in this context, you have two options. You may either configure your security system settings as per the documentation which includes setting up allowed address lists and network connections, or you can manually install the latest version of the agent. Also, there is an issue that can be related |
@ivanduplenskikh thanks for getting back to me so quickly. |
@hedasp, in this case you have the option to replace the old agent version with the new agent version. |
Thanks for getting back to me,@ivanduplenskikh |
@hedasp, you may download the release from the releases page and extract it to the existing directory. An example would be: Add-Type -AssemblyName System.IO.Compression.FileSystem ; [System.IO.Compression.ZipFile]::ExtractToDirectory("$HOME\Downloads\vsts-agent-win-x64-agent-version.zip", "agent_directory", $true) In this way, files and directories which were generated by the agent will be persist. |
Describe your question
For offline Deployment targets(doubling as environment targets too) we try to upgrade the installed agent using the "Upgrade targets" option in Azure DevOps UI for the Deployment group.
This triggers the src/Agent.Listener/SelfUpdater.cs script as expected and tries to download the current version 'https://vstsagentpackage.azureedge.net/agent/3.238.0/vsts-agent-win-x64-3.238.0.zip' to 'C:\agentfolder_work_update\agent1.zip'
This fails, due to lacking firewall opening.
The following should be an option according to this documentation: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents
"For servers with no internet access, manually copy the agent zip file to the following folder to use as a local file. Create the Agents folder if it is not present.
Windows: %ProgramData%\Microsoft\Azure DevOps\Agents"
But the SelfUpdater does not check this folder at all.
Adding the zip file directly to the '_work_update' folder does not work either, as it's cleaned when update script is running. Renaming it to "agent1.zip" did nothing either.
What is the recommended approach for upgrading offline deployment groups?
Versions
Azure DevOps Agent Version: 3.224.1
Windows Server 2022
Azure DevOps Services
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Operation system
Windows 2022
Version controll system
Azure Repo
Azure DevOps Server Version (if applicable)
No response
The text was updated successfully, but these errors were encountered: