Microsoft's revenue was $281.7 billion for the last year, up 15% on the previous year. Revenue from Azure was > $75 billion. Doesn't seem like a failing company to me.
https://www.microsoft.com/investor/reports/ar25/index.html