You can't work as a contractor on H1b. You need to be employed full-time.

They would be employed by another company, and contracted to Microsoft. This is the arrangement for the majority of H1-B employees in general, but I do not know if Microsoft does this.

Tech companies do not generally do this for their product teams, but may do it for their internal IT and reporting systems.