We bought the brand new requirement to replace the extension attribute on Azure AD gadgets.
Initially we thought that we are going to replace the extension attribute on onpremise and through AzureAD join
it can replicate again to AzureAD however our assumption was fallacious as extension attributes don’t replicate for gadgets,
it replicates for person objects.
Right here is the reference article:
onPremisesExtensionAttributes useful resource sort
Subsequent drawback is tips on how to replace the extension attribute instantly within the cloud.
You should utilize Microsoft Graph SDK, I’m sharing some classes discovered right here; I may also share the script in future.
Lesson Number one
DeviceID in AzureAD is identical as ObjectGUID of the Pc object in Onpremise Lively Listing.
Lesson Quantity 2
Get-MgDevice -DeviceId deviceid command is not going to work, as an alternative use beneath command.
Get-MgDevice -Filter “DeviceId eq ‘deviceid’”
Lesson Quantity 3
Replace-MgDevice -DeviceId deviceid command is not going to work, as an alternative use id i.e. object ID as an alternative of deviceid.
Replace-MgDevice -DeviceId id
Earlier lesson from one other weblog à
Workplace 365 License Report by E-mail V2 | Tech Wizard however sharing it right here once more
Get-MgDevice -All is not going to work with powershell 5.1, when you have massive variety of objects in your tenant.
You want to use powershell core v7.
I hope these all factors will prevent lot of time when you’re designing the same resolution.
Thanks for studying ….
Tech Wizard