Microsoft does not have a consistent internal stack nor is anyone "encouraged" to use .NET. I don't know where this idea that Microsoft's online services all use .NET, for example, my team which delivers a large service as part of a top-level Azure offering is mostly all Go.
> I don't know where this idea that Microsoft's online services all use .NET
My only knowledge of this happening is when Microsoft took over Hotmail and replaced FreeBSD with Windows. I assumed like the other comments that it would be political suicide to continue to support a non-Microsoft stack
Ehh, I worked there on online services before Azure even existed and it would have been career suicide and an enormous legal fight to use anything outside MS's stack--IIS, MSSQL, COM & C++, then .NET. Hotmail got away with it for some years because they were an acquisition.