Hi,
When connecting to the MECM API, you can indeed use certificate-based authentication directly without needing to follow up with NTLM authentication.
Here are some steps to get you started:
Direct Query via Web Browser:
- You can use a web browser to query the administration service. Simply specify the query URI as the browser's URL, and the service will process the GET request, returning the result in JSON format.
How to set up the administration service in Configuration Manager
Using PowerShell:
- You can make direct calls to the service using the
Invoke-RestMethod
cmdlet in PowerShell. For example:
Invoke-RestMethod -Method 'Get' -Uri "https://<SMSProviderFQDN>/AdminService/wmi/SMS_Site" -UseDefaultCredentials
- This command will return the output in JSON format. You can further drill down to specific values as needed.
Power BI Desktop:
- You can also use Power BI Desktop to query data in Configuration Manager via the administration service. In Power BI Desktop, select Get Data > OData feed, and specify the administration service route.
For more detailed information, you can refer to the Configuration Manager API reference.