I'm trying to remove a Home Page URL from an Azure App Registration using Graph Rest API following MS Doc https://learn.microsoft.com/en-us/graph/api/application-update?view=graph-rest-1.0&tabs=http
Graph Does not throw any exceptions when I am passing null. Returning 204. However, Home Page URL is not removed.
If I am passing empty string, Graph throwing exceptions which is valid .
var updateApp = new Application
{
Web = new WebApplication
{
HomePageUrl = null
},
};
await graphClient.Applications[applicationObjectId].Request().UpdateAsync(updateApp);
Can someone help me how to remove existing Home Page URL using Graph in C#?
I registered one Azure AD application and added sample Home Page URL as below:
To remove this existing Home Page URL using Graph in C#, I ran below code:
Response:
When I checked the same in Portal after few minutes by refreshing the page, Home Page URL removed successfully in the application as below: