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

[Issue]azd pipeline config could not find a default agent queue in project #4248

Open
1 task done
scrocquesel-ml150 opened this issue Aug 26, 2024 · 5 comments
Open
1 task done
Assignees
Labels
azdo Azure DevOps customer-reported identify a customer issue enhancement needs-team-attention Issues out of a milestone pipelines question
Milestone

Comments

@scrocquesel-ml150
Copy link

Output from azd version
azd version 1.9.5 (commit cd2b7af)

Describe the bug
Running azd pipeline config --provider azdo fails with

ERROR: could not find a default agent queue in project xxx

The name of the agent queue is hard coded

if *queue.Name == "Default" {

To Reproduce
N/A

Expected behavior
We are able to give the name of the queue to use and the config passes.

Environment
N/A

Additional context
My agent queue is named Azure Pipelines

@rajeshkamal5050
Copy link
Contributor

@vhvb1989 can we make agent/pool name Default configurable?

@vhvb1989
Copy link
Member

Yes, I will take a look. We should be able to check if more than one and list them to ask user to pick which to use

@rajeshkamal5050
Copy link
Contributor

@vhvb1989 can't we infer this from being defined in the azdo pipeline yaml? - https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pool?view=azure-pipelines#pool-string

@rajeshkamal5050 rajeshkamal5050 added this to the Sep 2024 milestone Aug 28, 2024
@vhvb1989
Copy link
Member

@vhvb1989 can't we infer this from being defined in the azdo pipeline yaml? - https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/pool?view=azure-pipelines#pool-string

We could, but sometimes projects won't have a pipeline definition, or they could have one which only defines a pool and vmImage (i.e. Ubuntu). So trying to get the pool name from the definition will not work for all scenarios.

The agent pool name can be defined in the pipeline definition to override the default agent pool used and assigned to the pipeline when the pipeline was created...

@rajeshkamal5050
Copy link
Contributor

@vhvb1989 moving this to next iteration.

@rajeshkamal5050 rajeshkamal5050 modified the milestones: Oct 2024, Nov 2024 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azdo Azure DevOps customer-reported identify a customer issue enhancement needs-team-attention Issues out of a milestone pipelines question
Projects
None yet
Development

No branches or pull requests

5 participants
@rajeshkamal5050 @vhvb1989 @scrocquesel-ml150 and others