title: Getting Registered App Display Name from an App Id
body: <p>I have an Azure App Id which I have obtained from a token. I would like to get the display name of the application using C# so that I can add it to logs and Application Insights custom properties for a request. It is obviously more human-readable than an Id hence my need.</p>
  
  <p>When I go into the portal I can go to the app registrations and type the AppId in and it shows me the name, so clearly it can be obtained (I can see from the URL <a href="https://graph.windows.net/myorganization/applications/?api-version=2.0&amp;" rel="nofollow noreferrer">https://graph.windows.net/myorganization/applications/?api-version=2.0&amp;</a>$top=40&amp;$filter=appId%20eq%20%27MYAPPID%27), but how do I get this information programmatically in C#?</p>
  
  <p>I could maintain my own lookup table somewhere which converts app ids to names, but this seems pointless when the information is obviously available at runtime. </p>