-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Describe the bug
This code used to work to add a corporate device identifier to Intune via the Graph Beta SDK:
`
var request = new Microsoft.Graph.Beta.Models.ImportedDeviceIdentity
{
ImportedDeviceIdentifier = details.Manufacturer + "," + details.Model + "," + details.SerialNumber,
ImportedDeviceIdentityType = ImportedDeviceIdentityType.ManufacturerModelSerial,
Platform = Microsoft.Graph.Beta.Models.Platform.Windows
};
Microsoft.Graph.Beta.Models.ImportedDeviceIdentity? result = await clientBeta.DeviceManagement.ImportedDeviceIdentities.PostAsync(request);
`
But this now fails with an error 500. The equivalent Graph Explorer request is different now, so there's nothing matching in the SDK:
Expected behavior
There should be a method in the beta SDK to add a corporate device identifier via https://graph.microsoft.com/beta/deviceManagement/importedDeviceIdentities/microsoft.graph.importDeviceIdentityList.
How to reproduce
See above.
SDK Version
5.99
Latest version known to work for scenario above?
No response
Known Workarounds
SendPrimitiveAsync works to craft a custom POST request.
Debug output
No response
Configuration
No response
Other information
No response