Closed read-0nly closed 4 years ago
Oh fun. Graph Explorer returns the same. The value returned for ID doesn't work appended to the url either.
{
"id": "DefaultDeviceCompliancePolicy.RequireDeviceCompliancePolicyAssigned",
"setting": "DefaultDeviceCompliancePolicy.RequireDeviceCompliancePolicyAssigned",
"settingName": "DefaultDeviceCompliancePolicy.RequireDeviceCompliancePolicyAssigned",
"platformType": "all",
"unknownDeviceCount": 0,
"notApplicableDeviceCount": 0,
"compliantDeviceCount": 7,
"remediatedDeviceCount": 0,
"nonCompliantDeviceCount": 0,
"errorDeviceCount": 0,
"conflictDeviceCount": 0
},
https://graph.microsoft.com/beta/deviceManagement/deviceCompliancePolicySettingStateSummaries/DefaultDeviceCompliancePolicy.RequireDeviceCompliancePolicyAssigned and https://graph.microsoft.com/v1.0/deviceManagement/deviceCompliancePolicySettingStateSummaries/DefaultDeviceCompliancePolicy.RequireDeviceCompliancePolicyAssigned both fail, suggesting that's not the ID that should be provided - is Graph itself broken then?
This is what the command returns with no parameters:
The response section of the docs says the ID should be a UID: https://docs.microsoft.com/en-us/graph/api/intune-deviceconfig-devicecompliancepolicysettingstatesummary-get?view=graph-rest-1.0#response-1