1

我正在尝试在 Intune 中创建托管设备,但出现不同的错误。

这是我正在使用的文档https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_devices_manageddevice_create

我正在使用 Graph Explorer 测试功能,因此我不需要授权令牌,并且我登录的帐户是全局管理员,并且启用了适当的委派权限“DeviceManagementManagedDevices.ReadWrite.All”。

当我尝试第一个请求时 /users/{usersId}/managedDevices,我得到一个 403
An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000
如果我尝试/deviceManagement/managedDevices,我会得到 400
No OData route exists that match template


如果这有什么不同,我已注册免费试用 Intune 和 Azure AD。


我会错过什么?

我基于创建 managedDevice 文档中的示例的请求正文。我也尝试删除 odata 类型,但没有区别。

我试过的一个例子

 {
        "id": "5h5b3fab-0169-45de-9aad-3d928ebbe1a0",
        "userId": null,
        "deviceName": "newIntuneDev",
        "deviceActionResults": [],
        "enrolledDateTime": "2018-02-19T11:04:24.242385Z",
        "lastSyncDateTime": "2018-01-03T14:01:45.1553437Z",
        "operatingSystem": "Android",
        "complianceState": "compliant",
        "jailBroken": "false",
        "managementAgent": "mdm",
        "osVersion": "7.0",
        "easActivated": true,
        "easDeviceId": "DFC17B28459230B3",
        "easActivationDateTime": "2018-01-19T11:05:11.4483412Z",
        "azureADRegistered": true,
        "deviceEnrollmentType": "userEnrollment",
        "activationLockBypassCode": null,
        "emailAddress": null,
        "azureADDeviceId": "89f65205-72af-4830-a9b1-ebcd3160476f",
        "deviceRegistrationState": "registered",
        "deviceCategoryDisplayName": null,
        "isSupervised": false,
        "exchangeLastSuccessfulSyncDateTime": "0001-01-01T00:00:00Z",
        "exchangeAccessState": "none",
        "exchangeAccessStateReason": "none",
        "remoteAssistanceSessionUrl": "",
        "remoteAssistanceSessionErrorDetails": "",
        "isEncrypted": false,
        "userPrincipalName": null,
        "model": "SM-G930F",
        "manufacturer": "samsung",
        "imei": "539467078998547",
        "complianceGracePeriodExpirationDateTime": "9999-12-31T23:59:59.9999999Z",
        "serialNumber": "T58H52RP9KN",
        "phoneNumber": null,
        "androidSecurityPatchLevel": "2018-01-01",
        "userDisplayName": null,
        "configurationManagerClientEnabledFeatures": {
            "inventory": false,
            "modernApps": false,
            "resourceAccess": false,
            "deviceConfiguration": false,
            "compliancePolicy": false,
            "windowsUpdateForBusiness": false
        },
        "wiFiMacAddress": "4C6641183631",
        "deviceHealthAttestationState": null,
        "subscriberCarrier": "",
        "meid": "659467078998547",
        "totalStorageSpaceInBytes": 0,
        "freeStorageSpaceInBytes": 0,
        "managedDeviceName": "newDevice",
        "partnerReportedThreatState": "unknown"
    }
4

1 回答 1

0

这(https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_devices_manageddevice_create)是一个文档错误。API 不支持创建 managedDevice。您需要 MDM 将设备注册到 Intune 以查看在 ~/managedDevices API 下填充的数据。

  1. 注册免费的 Intune 试用订阅
  2. 设置 MDM 权限 - https://docs.microsoft.com/en-us/intune/mdm-authority-set
  3. 注册设备 - https://www.microsoft.com/itshowcase/Article/Video/634/Enroll-your-mobile-device-in-Microsoft-Intune-for-corporate-access
  4. 成功注册后,设备应显示在 ~/managedDevices 下

谢谢, Alemeshet Alemu - MSFT

于 2018-04-05T05:46:33.803 回答