Set-AzureADDevice

In this Azure article, we will discuss the syntax and usage of the Set-AzureADDevice PowerShell command with an example of how to use this command. I will execute this command and show you the output with screenshots.

Set-AzureADDevice

This is a very good PowerShell command to update the details of your device in the Azure AD.

Syntax

Find the below syntax of the Set-AzureADDevice PowerShell command.

Set-AzureADDevice -ObjectId <String> [-DisplayName <String>]

Let’s discuss an example of how to use the Set-AzureADDevice PowerShell command.

Example

You can execute the below PowerShell command to update the Display name of the TsInfo device to a new Display name TsInfo New device.

Set-AzureADDevice -ObjectId a34dad44-3e2f-4aff-a84b-3027bad701b4 -DisplayName 'TsInfo New device'

After executing the above command, I got the below output as expected.

Set-AzureADDevice

To cross-check that the Display name of the device has been changed successfully, I have executed the Get-AzureADDevice PowerShell command to retrieve the device details. I can able to see the Display name of the device has been changed successfully.

Get-azureaddevice PowerShell

Similarly, you can change the DeviceObjectVersion, DeviceOSType, and all other properties. You can use the Remove-AzureADDevice PowerShell command to remove any unnecessary device in your Azure AD.

You may like following the related article:

Set-AzureADDevice PowerShell – Video Tutorial

Check out a video tutorial on the Set-AzureADDevice PowerShell command.

Final Thoughts

In this Azure PowerShell article, we discussed the syntax and usage of the Set-AzureADDevice PowerShell command with an example of how to use this command. Thanks for reading this article !!!.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!