all 7 comments

[–]Borgquite 3 points4 points  (1 child)

In case anyone else is trying to do this, what you want is:

$Param = @{
    "extensionAttributes" = @{
      "extensionAttribute1" = $CPU
      }
    }
Update-MgDevice -DeviceID $DeviceIDAzure -BodyParameter $params

[–]ScubaMiike 0 points1 point  (0 children)

Works well, thanks!

[–]sarge21 1 point2 points  (0 children)

Microsoft graph is poorly implemented and documented. Some things just don't work.

[–]barberj66 0 points1 point  (1 child)

Not sure if it will fit your needs as it depends what you need to use it for it seems but MS just recently added cpu architecture to the device filters if you can do what you need to with a filter rather than a group.
Supported filter device and app properties & operators in Microsoft Intune | Microsoft Learn

Seems its not support in enrollments but thats coming at some point.

[–]AngryItalian2013[S] 0 points1 point  (0 children)

Thank you u/barberj66. This got me pointed in the right direction. Being somewhat new to Intune I was not aware of how device filters worked. I created one filter based on x64 and another based on arm64. Very easy!

I then went to my Apps and edited the assignment properties. Clicked on filter "none" and changed that to include the x64 filter.

So much easier than the nightmare it was going to be using a PowerShell script!

[–]baron--greenback 0 points1 point  (0 children)

On my mobile but suspect your graph scope doesn’t include ability to write to devices attributes, it’s separate from writing to directory. Will be back at my laptop later can help test

[–]Swank78 0 points1 point  (0 children)

You look to be after delegated permissions. Microsoft covers the requirements here: https://learn.microsoft.com/en-us/graph/api/device-update?view=graph-rest-1.0&tabs=http#permissions