Hi everyone!
I'm trying to create a deviceManagementCompliancePolicy by graph api explorer. Just want to figure out what is it. But I get error response with code "FeatureNotEnabled". How can I enable it or where can I find some docs about this type of policies?
All information that I found is this resource description. Also if I trying to create this type using .Net graph SDK v5.6 it has no @odata.type property as well. Seems as some not implemented functional.
Note: I have enough granted permissions.
My request: POST https://graph.microsoft.com/beta/deviceManagement/compliancePolicies
Body:
{
"@odata.type": "#microsoft.graph.deviceManagementCompliancePolicy",
"name": "Name value",
"description": "Description value",
"platforms": "windows10",
"technologies": "mdm",
"settingCount": 1,
"creationSource": "Creation Source value",
"roleScopeTagIds": [],
"isAssigned": true,
"settings": [
{
"settingInstance": {
"@odata.type": "#microsoft.graph.deviceManagementConfigurationGroupSettingCollectionInstance",
"settingDefinitionId": "definition-id",
"groupSettingCollectionValue": [
{
"@odata.type": "#microsoft.graph.deviceManagementConfigurationGroupSettingValue"
}
]
}
}
]
}
Response with 403 status code and body:
{
"error": {
"code": "FeatureNotEnabled",
"message": "{ \"_version\": 3, \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 7c34ceb4-4ced-030c-a1f1-15d986cbe076 - Url: https://fef.amsua0102.manage.microsoft.com/DeviceConfigV2/DCV2GraphService/de147310-ffff-2561-0302-040421532621/deviceManagement/compliancePolicies?api-version=5024-01-18\", \"CustomApiErrorPhrase\": \"\", \"RetryAfter\": null, \"ErrorSourceService\": \"\", \"HttpHeaders\": \"{}\"}",
"innerError": {
"date": "2024-04-05T06:38:18",
"request-id": "04480fc0-a398-4b10-bf4a-a78e2c58c3bc",
"client-request-id": "7c34ceb4-4ced-030c-a1f1-15d986cbe076"
}
}
}