2017-11-02 12 views
2

다음 Microsoft Graph를 사용하여 create a managed device in Intune을 사용하려고하지만 오류가 계속 발생합니다.그래프 API를 사용하여 Intune에서 managedDevice를 만듭니다.

update an existing device record도 시도 할 때 오류가 발생합니다.

나는 적절한 범위에 있으며 내 계정은 인투 (Intune) 관리자입니다. 어떤 제안? 여기

는 ..

사용 PATCH

"error": { 
    "code": "InternalError", 
    "message": "An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 7d3aea54-282a-4911-99a5-af3d2422f81a - Url: https://fef.amsua0502.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/managedDevices%28%278f312966-1c51-403b-9b3a-6cf52643fa70%27%29?api-version=5017-09-07 - CustomApiErrorPhrase: ", 
    "innerError": { 
     "request-id": "7d3aea54-282a-4911-99a5-af3d2422f81a", 
     "date": "2017-11-02T12:16:55" 
    } 
} 

답변

0

그들은 문서를 업데이트하지 않고 엔드 포인트를 변경을 사용하여 업데이트 할 때 내가받은 예를 들어 오류입니다 :/deviceManagement/managedDevices

+0

이 방법이 효과가 있었습니까? – Billa

1

그들은 설명서를 업데이트하지 않고 끝점을 변경했습니다.

사용 :/deviceManagement/managedDevices

json 개체에서 끝점과 (더 자주) 필수 매개 변수가 베타 버전입니다. 브라우저에서 개발자 모드의 게시물을보고이 변경 사항을 많이 파악했습니다. 설명서는 실제로 실제 구현의이면에있는 경우가 많습니다.

그리고 이것도 효과가있었습니다. 내가 관리 장치를 만들 수있는 예제가없는

:

Edit2가 .. 늦게 응답 죄송합니다.

$ 엔드 포인트 = "https://graph.microsoft.com/beta"

## Win10 
    $Win10 = [pscustomobject]@{ 
     '@odata.type' = "#microsoft.graph.windows10GeneralConfiguration" 
     'description' = "standard Windows 10 Device Restriction Configuration" 
     'displayName' = "Win10" 
    } 
    $Win10params = @{ 
     ContentType = 'application/json' 
     Headers = $Header 
     Body = $Win10 | ConvertTo-Json -Compress 
     Method = 'POST'  
     URI = "$Endpoint/deviceManagement/deviceConfigurations" 
    } 
Invoke-RestMethod @Win10params 

그러나 다시 :하지만이 빈 장치 구성을 생성하는 방법에 대한 예입니다. 개발자 탭에서 POST를 살펴본 다음 상단에서 매개 변수를 시도해보십시오. 설명서가 필요한 최소 매개 변수로 업데이트되지 않은 경우 단계별로 검토해야합니다.

+0

사례를 공유해 주실 수 있습니까? 감사! – DJones

+0

특히 관리 장치를 만들 때 필요한 매개 변수를 찾으십시오. – DJones