Coder
Coder

Reputation: 139

Vmss agent pool not getting jobs assigned in Azure DevOps

I have created a Azure DevOps pipeline. I create a Agent Pool(testpool) and add a virtual machine scale set(VMSS) agent in that pool. The VMSS agent is authorised to use a VMSS in a subscription. enter image description here

I pass the pool name(testpool) to the pipeline.

trigger:
  branches:
    include:
    - dev
  
resources:
- repo: self
 
stages:
- stage: Build
  pool:
    name: ${pool}
  displayName: Build and push stage to Dev Branch

I verify the variable is passed. When i run the build i notice that the build job always gets assigned with the already existing default Azure Pipelines pool and not my self hosted VMSS Agent pool. My self hosted pool is in idle state.

(

Can anyone help me? thanks enter image description here

Upvotes: 0

Views: 373

Answers (1)

Coder
Coder

Reputation: 139

in one of the jobs, i had this line

pool:
      vmImage: $(vmImageName)

This was causing the default Azure Pipelines pool to be used when i removed it the self hosted pool was used

Upvotes: 0

Related Questions