Azure virtual machine - detect and install ado agent

Pankaj Joshi 351 Reputation points
2023-06-27T17:52:56.89+00:00

I want to identify that ADO agent is installed on multiple virtual machine (linux and window). If not exist then install ado agent on virtual machines. Is this can be achieve using azure automation? If yes then Please share any link

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,290 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Swathi Dhanwada 18,806 Reputation points Microsoft Employee
    2023-07-04T06:07:23.14+00:00

    @Pankaj Joshi Thanks for your question. For your requirement, its suggested to use Azure Policy. Whether it's possible to identify the agent that is installed within the virtual machine or not, it needs to be verified within PowerShell script.

    For using automation to verify, you need to retrieve all the virtual machines and individually verify whether the extension are installed or not. Here are PowerShell commands that will help you achieve your requirement.

    For more information, refer this document.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.