Xrai
Xrai

Reputation: 1

Has anyone managed to update the Entra name for an Android for work device

Device = Get-MgDeviceManagementManagedDevice -ManagedDeviceId "12345-1245-4118-a41d-0dac089b3101"|select *

Set-MgBetaDeviceManagementManagedDeviceName -ManagedDeviceId $Device.Id -DeviceName "AP-AND-FM-RQCX50539ZY"

$Device = Get-MgDeviceManagementManagedDevice -ManagedDeviceId "1234512345-1234-1234-a897-583c6e3755ca"|select *

Set-MgBetaDeviceManagementManagedDeviceName -ManagedDeviceId $Device.Id -DeviceName "Bob.Builder_AndroidForWork"

The first one gets renamed the 2nd drops an error [BadRequest] : { "_version": 3, "Message": "An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: c28bff3a-c66f-4559-89e8-c3b27f6b60dd - Url: https://fef.msub03.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices('2cd20f5a-fa77-4c09-a897-583c6e3755ca')/microsoft.management.services.api.setDeviceName?api-version=5024-07-19", "CustomApiErrorPhrase": "", "RetryAfter": null, "ErrorSourceService": "", "HttpHeaders":

It's running in in a automation account via a managed identity any hints welcomed. The only real difference is one is a fully managed intune enterprise device and the other has just a work profile.

Tried with a delegated account but saw that this may not be supported

Upvotes: 0

Views: 46

Answers (0)

Related Questions