R7 Insight Agent (macOS) Intune Deployment

We are deploying rapid7-insight-agent-4.0.10.72-1.x86_64.pkg via Intune as a macOS app (PKG) type. The devices are successfully checking into the portal, but the Intune Detection Rules are not recognizing that the application is installed.

I’ve set it to ignore the App Version and tried using com.rapid7.rapid7-insight-agent and com.rapid7.ir_agent as the App Bundle ID (CFBundleIdentifier), both individually and together.

Any ideas on how to get Intune to detect the installation?

What error do you see for the (pkg) app as installation status?

Can you hare the way you did this ?

Wanted to provide an update:

I do not remember what the error was but I believe it failed to install.
After letting it sit there, Intune eventually updated advising that the R7 was installed

No Pre-install Script
Post Install Script:
#!/bin/bash
sudo /opt/rapid7/ir_agent/components/insight_agent/4.0.10.72/configure_agent.sh --token= -v --start

Ignore App Version: Yes
App Bundle ID:
com.rapid7.rapid7-insight-agent
com.rapid7.ir_agent

Both bundles set to 4.0.10.72

I would still spot-check the devices