We are installing elastic agents onto WS2019 VMs via Azure DevOps pipelines.
In the pipeline in one particular stage/task there is one powershell script that installs different packages on the server and Elastic Agent is among them (installed last).
Everything runs fine and agent seems to be installed and running on the server, but it is not present in the Fleet UI. It is not shipping data to elastic.
Based on your first message that Elastic Agent was not enrolled into Fleet. So it is running in standalone mode. You need to run the install command with the --url and --enrollment-token parameters so it will enroll into the Fleet. Only then will that installed Elastic Agent get the policy you created in Fleet.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.