I was checking out ChatGPT and tried some azuread questions for it, and was very impressed with the responses so far. Here is an example asking about queries and MSGraph PowerShell that is very close.