To list the Microsoft Foundry accounts with kind filter and specification of fields, use the command below.
az cognitiveservices account list \
--query "[?kind=='AIServices'].{Name:name, ResourceGroup:resourceGroup, Location:location}" \
--output table
Name ResourceGroup Location
--------------------------- --------------- ------------
foundry-resource-aks-deploy rg-aks-deploy centralindia