Hi Jason,
Thanks for your reply..
I got the solution for this issue. The task 'Inline Azure Powershell' has the dependency to have Azure PowerShell module installed in Self-Hosted agent. I am going to install Azure powershell in agent and will run the pipeline.
Will update the status once i am done.
Thanks again..