Satya was holding the head of Cloud & Enterprise division, which has .NET and Developer Division within. He may have been preparing/planning for this long before he was appointed as well.
That might not be true at all. Open sourcing something like .NET is not trivial but it certainly is not a 9 month job. It could well be started within Satya's time.