Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 9, 2026

The azd pipeline provider rejected git remotes from self-hosted Azure DevOps Server instances (e.g., https://devops.example.com/Collection/Project/_git/Repo), blocking usage in Azure Government and on-premises environments.

Changes

  • parseAzDoRemote: Accept URLs with /_git/ pattern from any domain, track non-standard hosts via new IsNonStandardHost field
  • gitRepoDetails: Prompt user to confirm non-standard Azure DevOps hosts before proceeding
  • Tests: Add coverage for self-hosted Azure DevOps Server URL patterns

Behavior

Previously:

ERROR: parsing Azure DevOps remote url: https://devops.example.com/ABC/Project/_git/Repo: existing remote is not an Azure DevOps host

Now:

The remote URL 'https://devops.example.com/ABC/Project/_git/Repo' does not appear to be a standard Azure DevOps host. 
Is this a self-hosted Azure DevOps Server or Azure DevOps Services instance? (Y/n)

SSH remotes from non-standard hosts remain unsupported (cannot be reliably parsed).

Original prompt

This section details on the original issue you should resolve

<issue_title>Parsing Azure DevOps remote fails for hosted DevOps Servers</issue_title>
<issue_description>

func parseAzDoRemote(remoteUrl string) (*azdoRemote, error) {

DevOps services can and must be self-hosted when DevOps product is not available (Azure Government for example)
The URL my be something like https://devops1.mydomain.com/ABC/MyProject/_git/MyProject

resulting in the following error:
ERROR: ensuring git remote: parsing Azure DevOps remote url: https://devops1.mydomain.com/ABC/MyProject/_git/MyProject: existing remote is not an Azure DevOps host: </issue_description>

<agent_instructions>Update the azdo_provider to prompt the user to confirm the remote instead of failing. The current strategy of failing if the remote does not look like a recognized azdo remote is limiting cases where the remote is actually expected in a different form. So, make the provider to tell the user that the remote "" was not recognized and ask if they want to continue using this remote anyway. Then users can confirm Yes to continue
Make No to be the default selection for the prompt</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@rajeshkamal5050 @vhvb1989 any thoughts on how to handle this for on-prem/hosted pipelines?

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update azdo provider to confirm remote before failing Support self-hosted Azure DevOps Server remotes via user confirmation Jan 9, 2026
Copilot AI requested a review from vhvb1989 January 9, 2026 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parsing Azure DevOps remote fails for hosted DevOps Servers

2 participants