When I go like this, I get a nice table view, which (awesomely too) pretty much always contains just what I need.
az ad app list –all
–output table
Now, as a true developer (read: problem solver), while totally satisfied, I just had to find me a problem solve. So I asked myself: can I alter the set of columns, ordering, naming etc. Well, I can.
az ad app list –all
–output table
–query "[?contains(displayName, ‘-SC’)].{Name:displayName, AppId:appId}"
But then, what’s the default setting and how can I horse around with it? According to a GH post, it’s supposed to be defined in the docs but in the notes section, they only mention which fields will be excluded by default.
I wonder where I can find info on:
- what fields are picked to be included (which isn’t all there are),
- how the order is decided (it can’t be random, can it?), and
- what sets the column names (those aren’t verbatim copy of the fields’ names).
2
Answers
No it is not random, order is based on alphabetical order as below:
Column names are set by the Azure Developers at the time of creation of this command and the columns names can be changed if there is an update from developing team(by Microsoft Documents).
I agree, by using below command(using -query):
Since the Azure client command
az ad
is using Microsoft Graph API, since mid 2022 ref, you can dig into Microsoft Graph API documentation to have some of the information you need.This page is, I believe, the corresponding API endpoint used by the Azure client call.
Digging further that route, we can see that there is an chapter named Applications, under Microsoft Graph REST API v1.0 endpoint reference.
And that chapter teach us that there is an application resource type, which is most likely JSON you are getting as a return from your client call.
The same page lists the properties of that specific resource type.
Here is a reproduction of those properties at the time of writing this answer:
Source: https://learn.microsoft.com/en-us/graph/api/resources/application#properties