Hi @Kavya Kasireddi ,
Welcome to Q&A forum!
I am a SharePoint support engineer, and your question is also related to Microsoft Graph, which is not my field of expertise, so I add a related tag so that your question can be seen by Graph engineers. Regarding your question, I conducted research and testing and got the same results as you. The get-mgsite -serach "*"
command did not return any results. But when I make an API call directly in graph-explorer, the expected result will be returned:
So you can try to use graph-explorer or postman to make API calls.
Or you can try using Get-SPOSite to get a list of all sites.
You can refer to this blog:
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.