Actually, I want to get list of all web services running on azure vm's using PowerShell
Yes i think other permission like 'Key vault contributor' was needed. I had given owner/contributor role. After giving proper permissions it worked fine. Thanks @RoderickBant74
Thanks, it did worked