Porting the diagnostics PaaS cmdlet to WAD 1.1

took comments from ogail