You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

树莓派连接Azure DevOps Pipeline的其他可行方案咨询

Workable Alternatives for Connecting a Raspberry Pi 4 to TFS/DevOps (No SSH Hosted Agent Access)

Hey there, I’ve run into similar network-restricted scenarios with Raspberry Pi and TFS agents before—here are some solid alternatives that should work for your setup:

1. Build a Raspi 4-Compatible Self-Hosted Agent

Your existing Raspi 3 agent is likely built for ARM32, but Raspi 4 uses ARM64, which Microsoft now supports for Azure Pipelines/TFS agents. Here’s how to set it up directly on your Raspi 4:

  • First, install dependencies on the Raspi 4:
    sudo apt-get update && sudo apt-get install -y libicu-dev
    
  • Head to your TFS/Azure DevOps project settings → Agent pools, choose an existing pool or create a new one, then click New agent
  • Select the Linux ARM64 platform option, download the agent package, and transfer it to your Raspi 4 (if you can’t download directly on the Pi, use a USB drive or approved file share)
  • Extract the package and run ./config.sh to connect the agent to your server—follow the prompts to enter your server URL, authentication token, and other details
  • Start the agent with ./run.sh, or set it up as a system service so it runs automatically on boot

2. Configure the Agent to Use a Corporate Proxy

If your network allows outbound traffic through an approved corporate proxy, you can route the agent's communication through it:

  • Before running ./config.sh, set these environment variables (replace with your proxy details):
    export HTTP_PROXY=http://your-corporate-proxy:port
    export HTTPS_PROXY=http://your-corporate-proxy:port
    export NO_PROXY=localhost,127.0.0.1,.your-internal-domain.com
    
  • When configuring the agent, you’ll also get a prompt to enter proxy credentials if your proxy requires authentication
  • This lets the agent talk to your TFS server without needing SSH access to a hosted agent

3. Use Azure Arc for Managed Agent Deployment (If Your Org Uses Azure)

If your company uses Azure Arc, you can onboard your Raspi 4 as an Arc-enabled server and deploy the agent through centralized Azure management:

  • Onboard your Raspi 4 to Azure Arc using the Linux onboarding instructions (this requires outbound access to Azure services, which many corporate networks allow)
  • Once the Pi is connected to Arc, you can deploy the self-hosted agent via an Azure Policy, a runbook, or manual script directly from the Azure portal
  • This gives you full control over the agent's lifecycle without needing direct SSH or unapproved network routes

4. Offline Agent Deployment (For Fully Isolated Networks)

If your Raspi 4 can’t access the internet at all, you can set up the agent offline:

  • On an internet-connected machine, download the Linux ARM64 agent package from your TFS/DevOps agent pool page
  • Transfer the zip file to your Raspi 4 using a USB drive or a secure, approved internal file share
  • Extract the package, run ./config.sh, and enter your server's internal URL and authentication token (make sure the Pi can resolve the TFS server hostname on your internal network)
  • Once configured, start the agent as usual

内容的提问来源于stack exchange,提问作者CodeRunner

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 14:12:56