Hi @jaldeguer , the access key needs to be present at /var/tmp/amagent-accesskey.txt at time of install, or set with the command sudo /usr/local/bin/amagent --setkey <key>
(where key is your company’s key) after the fact, or the agent will only be installed and not registered with your console. That command (with your key), and the launchctl command, are available in the console by going to Devices>Add Devices, then choose OS X and Download Installer.
Since InTune can run shell scripts, putting those commands into a script and running it from InTune on your Macs with the amagent already installed is probably the most straightforward way to finish the enrollment.
Thank you, Bauer! I finally was able to push out my Automox agent to my macOS Big Sur endpoints. I added the following script into Microsoft Endpoint Manager.
#!/bin/bash
/usr/local/bin/amagent --setkey my-unique-key.xxxxx
I am trying to deploy agents to macOS via Intune using a .sh script. This is the script I have deployed via Devices/macOS/Shell scripts
#! curl -sS "https://console.automox.com/downloadInstaller?accesskey=*******" | sudo bash
I can see that the agent installed on my test macOS device. But the agent does not show up in the zone in our console.