Create hardwareConfiguration
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.
Create a new hardwareConfiguration object.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | DeviceManagementConfiguration.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | DeviceManagementConfiguration.ReadWrite.All |
HTTP Request
POST /deviceManagement/hardwareConfigurations
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Accept | application/json |
Request body
In the request body, supply a JSON representation for the hardwareConfiguration object.
The following table shows the properties that are required when you create the hardwareConfiguration.
Property | Type | Description |
---|---|---|
id | String | The unique identifier of the hardware BIOS configuration profile for the enrolled devices. This id is and is autogenerated and assigned when new hardware BIOS configuration profile is created. This distinguishes profiles from each other and cannot be null. Returned by default. Read-Only. |
version | Int32 | The version of the hardware configuration (E.g. 1, 2, 3 ...). This is incremented after a change to the BIOS configuration profile's settings file name (FileName property), settings file content (ConfigurationFileContent property), or the PerDevicePasswordDisabled property. Read-Only. |
displayName | String | The name of the hardware BIOS configuration profile. It serves as user-friendly name to identify hardware BIOS configuration profiles. Max length is 150 characters. Required. Read-Only. |
description | String | The description of the hardware configuration. Use this to provide context, purpose, applications, etc of the BIOS configuration profile for your organization's admins. Max length is 1000 characters. Optional. |
createdDateTime | DateTimeOffset | The date and time of when the BIOS configuration profile was created. The value cannot be modified and is automatically populated when the device is enrolled. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default. Read-Only. This property is read-only. |
lastModifiedDateTime | DateTimeOffset | The date and time of when the BIOS configuration profile was last modified. The value cannot be modified and is automatically populated when the device is enrolled. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Returned by default. Read-Only. Read-Only. This property is read-only. |
fileName | String | The file name for the BIOS configuration profile's ConfigurationFileContent. Max length is 150 characters. Required. |
configurationFileContent | Binary | The file content contains custom hardware settings that will be applied to the assigned devices' BIOS. Max allowed file size is 5KB. Represented as bytes. Required. |
hardwareConfigurationFormat | hardwareConfigurationFormat | The OEM type associated with BIOS configuration profile's custom hardware settings. All devices that adheres to profile must be from the same selected OEM. Possible values are Dell, Surface, and Surface dock. Required. Possible values are: dell , surface , surfaceDock . |
roleScopeTagIds | String collection | A list of unique Scope Tag IDs associated with the hardware configuration. Optional. |
perDevicePasswordDisabled | Boolean | When TRUE, indicates whether the policy-assigned devices' passwords are disabled. When FALSE, indicates they are enabled. Default is FALSE. Required. |
Response
If successful, this method returns a 201 Created
response code and a hardwareConfiguration object in the response body.
Example
Request
Here is an example of the request.
POST https://graph.microsoft.com/beta/deviceManagement/hardwareConfigurations
Content-type: application/json
Content-length: 405
{
"@odata.type": "#microsoft.graph.hardwareConfiguration",
"version": 7,
"displayName": "Display Name value",
"description": "Description value",
"fileName": "File Name value",
"configurationFileContent": "Y29uZmlndXJhdGlvbkZpbGVDb250ZW50",
"hardwareConfigurationFormat": "surface",
"roleScopeTagIds": [
"Role Scope Tag Ids value"
],
"perDevicePasswordDisabled": true
}
Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 577
{
"@odata.type": "#microsoft.graph.hardwareConfiguration",
"id": "da410f27-0f27-da41-270f-41da270f41da",
"version": 7,
"displayName": "Display Name value",
"description": "Description value",
"createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
"lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
"fileName": "File Name value",
"configurationFileContent": "Y29uZmlndXJhdGlvbkZpbGVDb250ZW50",
"hardwareConfigurationFormat": "surface",
"roleScopeTagIds": [
"Role Scope Tag Ids value"
],
"perDevicePasswordDisabled": true
}