Porting the diagnostics PaaS cmdlet to WAD 1.1

put error msg to resources