Azure / Azure/azure-quickstart-templates

./config.cmd in InstallVstsAgent.ps1 do not work with proxy enabled for a domain joined VM

Open
#5,813 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

### Issue Details

Issue related to file : https://github.com/Azure/azure-quickstart-templates/blob/master/201-vm-vsts-agent/scripts/InstallVstsAgent.ps1

InstallVstsAgent.ps1 has ./config.cmd which works perfectly when 'Proxy' is not in place for a VM

### Scenario where it fails:
------------------------------
We have domain joined Azure VMs which need proxy so that the agent requests can go and talk to internet. We are able to download the agent.zip and extract, but even after mentioning the Proxy url in environment via DSC script the "./config.cmd" script fails to take the default proxy from IE browser or from local account and talk to to VSTS.

### Repro steps
Scenario when ".config.cmd" works :
------------------------------------------
1) When i log in through Azure VM serial Console with local account(by resetting password) at portal
2) And when i visit to below url c:\VSTSAgent and run config.cmd , then it configures and even without giving -proxyurl , its able to connect to VSTS/devops
![image](https://user-images.githubusercontent.com/29272728/52857014-e709d400-314b-11e9-84ad-74f5a5a7c3ae.png)

Need an urgent help, where we are going wrong or is this proxy scenario is still not supported ?

Thanks in Advance !

Regards,
Girish Kalamati
Do tweet me at: @TheAzureGuy007

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with 201-vm-vsts-agent/scripts/InstallVstsAgent.ps1 and inspect how it invokes ./config.cmd after downloading and extracting the agent. Reproduce the failure on a domain-joined Azure VM with a proxy configured through the environment or IE; done means config.cmd can connect to VSTS/DevOps without requiring an explicit proxy URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.