Hello @surya vamsi
I suspect some authentication issue. Since Powershell is not an interactive prompt there may be some authentication error that just stops the run or data output.
My recommendation would be to use directly the Azure Cloud Shell for this: https://learn.microsoft.com/en-us/azure/cloud-shell/overview
Hope this helps with your query,
----------
--If the reply is helpful, please Upvote and Accept as answer--