Skip to content

Unable to create an Intune corporate device identifier using the .NET Graph beta SDK #1077

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:

Image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions