question

HuongTruongQuoc-0137 avatar image
0 Votes"
HuongTruongQuoc-0137 asked Monalla-MSFT edited

How can I detect the Azure agent or Self-hosted agent in Azure devops pipeline?

For some reason, I want to detect which agent pipeline is running on to proceed with the appropriate action. May you give me some way to detect it in the pipeline?

not-supported-azure
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered

Hello @HuongTruongQuoc-0137 - Welcome to Microsoft Q&A and thanks for reaching out.

Devops is not currently supported here on Microsoft QnA.
The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum:
https://developercommunity.visualstudio.com/spaces/21/index.html
https://azure.microsoft.com/en-in/support/devops/

Hope this helps. and please feel free to reach out if you have any further questions.



If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.