The nine companies whose rating outlook has been revised upwards are RIL, TCS, Infosys, ONGC, Petronet LNG Ltd, UltraTech Cement, Oil India, Indian Oil Corporation and Hindustan Petroleum Corporation Ltd (HPCL).
The agency also affirmed the rating on privatisation-bound Bharat Petroleum Corporation (BPCL), but maintained the 'negative' outlook.
The nine banks whose outlook has been revised to 'stable' are SBI, Axis Bank, Bank of Baroda, Canara Bank, Axis Bank, HDFC Bank, ICICI Bank, PNB, Union Bank and EXIM Bank.
"Stabilization in asset quality and improved capital are the main drivers of this rating action," Moody's said.
Also, the rating outlook has been revised to 'stable' from 'negative' on 10 Indian infrastructure issuers, including NTPC, NHAI, PGCIL, Gail, Adani Transmission and Adani Ports and Special Economic Zone Limited (APSEZ).