Testing Your Service Discovery Configuration Using Curl

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

You can use a command-line query with curl to verify the service discovery redirect is working properly for a given Managed Apple Account's domain and specific model family type. This simulates the query that a device performs during the service discovery process.

Execute the following curl command, replacing the placeholders with your information:

/usr/bin/curl --location 'https://axm-servicediscovery.apple.com/mdmBaseURL?user-identifier={username@domain.org}&model-family={model}'

The model family must be one of the following:

  • Mac
  • iPad
  • iPhone
  • RealityDevice
The following is an example query for verifying service discovery redirects for the email address jdoe@yourorganization.name for account-driven enrollment for the iPad model family:
/usr/bin/curl --location 'https://axm-servicediscovery.apple.com/mdmBaseURL?user-identifier=jdoe@yourorganization.name&model-family=iPad'

The response should show the well-known discovery file that points to Jamf Pro's enrollment endpoint for either mdm-byod or mdm-adde enrollment:

{
  "Servers": [
    {
      "Version": "mdm-byod",
      "BaseURL": "https://yourinstance.jamfcloud.com/servicediscoveryenrollment/v1/userenroll"
    }
  ]
}