Porting the diagnostics PaaS cmdlet to WAD 1.1

Fixed annoying Code Analysis warning
Porting the diagnostics PaaS cmdlet to WAD 1.1

put error msg to resources
Merge pull request #2603 from ericprun/dev

Porting the diagnostics PaaS cmdlet to WAD 1.1