In this Azure PowerShell article, we will discuss the syntax and usage of the Update-AzADUser PowerShell command with examples.
This PowerShell command can help you to update the entities in the Azure Active Directory users.
Below is the syntax of the Update-AzADUser PowerShell command.
Let’s discuss an example of how to use the Update-AzADUser PowerShell command.
You can execute the below PowerShell command that will update the Display name of the specified Active Directory user. In this case, it will update the user’s Display name “tsinfouser” to “tsinfonewuser”.
Update-AzADUser -ObjectId 5e013a07-e22a-4d46-a6be-ca68b893b6df -DisplayName tsinfonewuser
After executing the above PowerShell command I got the below expected output.
To cross-check the Display name of the Azure Active Directory user, I have executed the Get-AzADUser PowerShell command. I can see the Display name has been changed successfully. Check out the screenshot below.
In this Azure PowerShell article, we discussed the syntax and usage of the Update-AzADUser PowerShell command with examples. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.