Set-AzureADApplication

In this Azure article, we will discuss the syntax and usage of the Set-AzureADApplication PowerShell command with examples.

Set-AzureADApplication

This is a very good PowerShell command that you can use to update an Azure Active Directory application.

You can always use the Get-AzureADApplication to get all your Azure Active Directory application details and then use the Set-AzureADApplication command to update any value of your web application.

Syntax

Below is the syntax of the Set-AzureADApplication PowerShell command.

Set-AzureADApplication -ObjectId <String>

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

Example

You can execute the below PowerShell command to update the display name of your Azure Active Directory application.

For me, the Display name of this application was “mynewwbapp”. Now I am updating the Display name of the web application to “TsinfoApp”.

Set-AzureADApplication -ObjectId "ef68982c-5978-4b9b-8589-ba174f5b8f08" -DisplayName "TsinfoApp"

After executing the above command, the Display name of the web application has been changed successfully. Check out the below screenshot.

Set-AzureADApplication

To cross-check, the display name has been updated successfully, I tried to retrieve the application details with the old name “mynewwbapp”. But I didn’t get any output since the Display name is already changed. You can see the below screenshot for reference.

set-azureadapplication PowerShell

But the moment I tried retrieving the application details with the new name “TsinfoApp”, I got the expected output. See below.

Set-AzureADApplication PowerShell command

You can also check out a video tutorial on the Set-AzureADApplication PowerShell command.

Final Thoughts

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