question

ShoNarita-4604 avatar image
0 Votes"
ShoNarita-4604 asked JarvisSun-MSFT commented

"Create importedDeviceIdentity" doesn't work

I cannot create importedDeviceIdentity by using the following API.
https://docs.microsoft.com/en-us/graph/api/intune-enrollment-importeddeviceidentity-create?view=graph-rest-beta

Remote Server Error (400) is returned even if I execute the request using the example in the document.


$url = "https://graph.microsoft.com/beta/deviceManagement/importedDeviceIdentities"
$body = @'
{
"@odata.type": "#microsoft.graph.importedDeviceIdentity",
"importedDeviceIdentifier": "Imported Device Identifier value",
"importedDeviceIdentityType": "imei",
"lastContactedDateTime": "2016-12-31T23:58:44.2908994-08:00",
"description": "Description value",
"enrollmentState": "enrolled",
"platform": "ios"
}
'@
$res = Invoke-RestMethod -Method POST -Uri $url -Headers $header -Body $body -ContentType "application/json"
$res


mem-intune-graph
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvisSun-MSFT avatar image
0 Votes"
JarvisSun-MSFT answered JarvisSun-MSFT commented

@ShoNarita-4604 Thanks for posting in our Q&A.
For our issue, I have done some tests. Through the graph explorer test, the returned result is failed. We have analyzed some code reasons, which are beyond our ability scope. With the limitation of Q&A forum, It is better to create an online support ticket to handle this issue. It is free. Here is the online support link and hope it will be resolved as soon as possible.
https://docs.microsoft.com/en-us/mem/intune/fundamentals/get-support
Thanks for your understanding.




If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi
I have contacted support as you instructed, but based on the URL below, the answer is that the support team cannot handle the beta API.
https://docs.microsoft.com/en-us/legal/microsoft-apis/terms-of-use
I am very disappointed that Microsoft is not accepting feedback to improve the product.

0 Votes 0 ·

@ShoNarita-4604 Thanks for marking the answer, sorry to hear this news. If you encounter more problems in the future, please don’t hesitate to submit to our Q&A forum, we will try our best to provide you with valuable solutions.

0 Votes 0 ·