deviceHealthScriptAssignment resource type
Namespace: microsoft.graph
Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.
Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.
Contains properties used to assign a device management script to a group.
Methods
Method | Return Type | Description |
---|---|---|
List deviceHealthScriptAssignments | deviceHealthScriptAssignment collection | List properties and relationships of the deviceHealthScriptAssignment objects. |
Get deviceHealthScriptAssignment | deviceHealthScriptAssignment | Read properties and relationships of the deviceHealthScriptAssignment object. |
Create deviceHealthScriptAssignment | deviceHealthScriptAssignment | Create a new deviceHealthScriptAssignment object. |
Delete deviceHealthScriptAssignment | None | Deletes a deviceHealthScriptAssignment. |
Update deviceHealthScriptAssignment | deviceHealthScriptAssignment | Update the properties of a deviceHealthScriptAssignment object. |
Properties
Property | Type | Description |
---|---|---|
id | String | Key of the device health script assignment entity. This property is read-only. |
target | deviceAndAppManagementAssignmentTarget | The Azure Active Directory group we are targeting the script to |
runRemediationScript | Boolean | Determine whether we want to run detection script only or run both detection script and remediation script |
runSchedule | deviceHealthScriptRunSchedule | Script run schedule for the target group |
Relationships
None
JSON Representation
Here is a JSON representation of the resource.
{
"@odata.type": "#microsoft.graph.deviceHealthScriptAssignment",
"id": "String (identifier)",
"target": {
"@odata.type": "microsoft.graph.configurationManagerCollectionAssignmentTarget",
"deviceAndAppManagementAssignmentFilterId": "String",
"deviceAndAppManagementAssignmentFilterType": "String",
"collectionId": "String"
},
"runRemediationScript": true,
"runSchedule": {
"@odata.type": "microsoft.graph.deviceHealthScriptDailySchedule",
"interval": 1024,
"useUtc": true,
"time": "String (time of day)"
}
}